/* ==========================================================================
   Galeria Streaming Ads — Mobi BR
   Identidade: chrome das paginas de aprovacao (mockups BHalf) — fundo #0e0e0e,
   Inter, pills arredondadas, cards com borda fina; acento laranja Mobi #E6450D.
   ========================================================================== */

:root {
  --bg: #0e0e0e;
  --card: #131313;
  --card-2: #111;
  --line: #1b1b1b;
  --line-2: #1e1e1e;
  --line-3: #262626;
  --txt: #fff;
  --txt-2: #e8e8e8;
  --muted: #8c8c8c;
  --dim: #6a6a6a;
  --faint: #4a4a4a;
  --accent: #e6450d;
  --accent-soft: #2a1108;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  padding: 40px 48px 72px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ------------------------------------------------------------ header */
.appr-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.appr-head .hl { display: flex; align-items: center; gap: 18px; }
.appr-head .logo-mobi { height: 22px; width: auto; display: block; }
.appr-head .sep { width: 1px; height: 20px; background: #2a2a2a; flex-shrink: 0; }
.appr-head .lbl { font-size: 10px; font-weight: 500; color: var(--dim); letter-spacing: 2.5px; text-transform: uppercase; }
.appr-head .navl { display: flex; gap: 18px; }
.appr-head .navl a { font-size: 10px; font-weight: 600; color: #8a8a8a; letter-spacing: 2px; text-transform: uppercase; transition: color .18s ease; }
.appr-head .navl a:hover, .appr-head .navl a.on { color: var(--accent); }
.appr-head .hr { display: flex; align-items: center; gap: 14px; }
.appr-head .ctag { font-size: 9px; font-weight: 500; color: var(--faint); letter-spacing: 2px; text-transform: uppercase; }
.appr-head .logo-sa { height: 16px; width: auto; display: block; opacity: .75; }

/* -------------------------------------------------------------- hero */
.hero { margin-bottom: 30px; }
.hero .kicker { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; margin-bottom: 12px; }
.hero p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 700px; }
.hero p b { color: #c9c9c9; font-weight: 600; }
.hero .stats { margin-top: 14px; font-size: 10px; color: var(--faint); letter-spacing: 2px; text-transform: uppercase; }

/* ----------------------------------------------------- toolbar / pills */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 20px;
  background: rgba(14, 14, 14, .94); backdrop-filter: blur(10px);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font-size: 12.5px; font-weight: 600; color: #9a9a9a; background: #151515; border: 1px solid var(--line-3);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.tab .dot { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3a; transition: background .18s ease; flex-shrink: 0; }
.tab .n { font-size: 10px; font-weight: 600; color: #5a5a5a; letter-spacing: .5px; }
.tab:hover { color: #fff; border-color: #3d3d3d; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab.on { color: #fff; background: var(--accent-soft); border-color: var(--accent); }
.tab.on .dot { background: var(--accent); }
.tab.on .n { color: #c9c9c9; }
.tab.small { font-size: 11px; padding: 6px 13px; }
.tab.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.tab.primary:hover { background: #ff5a1f; border-color: #ff5a1f; }

/* ------------------------------------------------------------ gallery */
.cat { margin-bottom: 40px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cat-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.1px; }
.cat-head .count { font-size: 10px; color: #5a5a5a; letter-spacing: 1.5px; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0; display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: #3d3d3d; transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .shot { aspect-ratio: 16 / 9; background: #0a0a0a; position: relative; overflow: hidden; display: block; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .shot img { transform: scale(1.04); }
.card .shot .play {
  position: absolute; right: 10px; bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 4px 10px; opacity: 0; transition: opacity .18s ease;
}
.card:hover .shot .play { opacity: 1; }
.card .meta { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 4px; }
.card .meta .t { font-size: 13px; font-weight: 600; color: var(--txt-2); line-height: 1.3; }
.card .meta .c { font-size: 10.5px; color: var(--dim); letter-spacing: .3px; }

/* ------------------------------------------------------------- viewer */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(14, 14, 14, .97); display: none; flex-direction: column; }
.viewer.open { display: flex; }
.viewer-bar { display: flex; align-items: center; gap: 18px; padding: 18px 48px; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
.viewer-bar .logo-mobi { height: 16px; width: auto; }
.viewer-bar .vt { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar .vc { font-size: 10px; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.viewer-close {
  font-size: 11px; font-weight: 600; color: #9a9a9a; background: transparent; border: 1px solid var(--line-3);
  border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.viewer-close:hover { border-color: #555; color: #fff; }
.viewer-body { overflow-y: auto; flex: 1; padding: 36px 48px 80px; }
.embed-block { margin: 0 auto 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.embed-block .size { font-size: 10px; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; }
.embed-frame { border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #111; max-width: 100%; overflow: auto; }
.embed-frame iframe { display: block; border: 0; max-width: none; }
.fnav { flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------ formats */
.fcards { display: flex; flex-direction: column; gap: 14px; }
.fcard {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 22px;
}
.fcard[hidden] { display: none; }
.fcard-media {
  position: relative; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; min-height: 560px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dev-toggle { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; background: #151515; border: 1px solid var(--line-3); border-radius: 999px; padding: 3px; }
.dev-toggle button { background: transparent; border: 0; color: #8a8a8a; border-radius: 999px; padding: 6px 10px; cursor: pointer; display: flex; transition: color .18s ease, background .18s ease; }
.dev-toggle button:hover { color: #fff; }
.dev-toggle button.on { color: var(--bg); background: var(--accent); }
.dev-toggle svg { width: 15px; height: 15px; display: block; }

.device { position: relative; }
.device.phone { width: 300px; height: 600px; box-sizing: content-box; padding: 12px; border: 1px solid var(--line-3); border-radius: 30px; background: #0a0a0a; transform: scale(.86); }
.device.phone .screen { width: 100%; height: 100%; border-radius: 20px; }
.device.desktop { width: 100%; max-width: 560px; border: 1px solid var(--line-3); border-radius: 10px; overflow: hidden; background: #0a0a0a; margin: 0 24px; }
.device.desktop .bar { height: 26px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.device.desktop .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); display: block; }
.device.desktop .screen { width: 100%; aspect-ratio: 97 / 25; }
.screen { position: relative; overflow: hidden; background: #111; }
.screen iframe { position: absolute; left: 50%; top: 50%; border: 0; transform: translate(-50%, -50%); transform-origin: center; max-width: none; }
.screen .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.screen .ph svg { width: 82%; max-height: 60%; }
.screen .ph .note { font-size: 10px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.device.desktop .screen .ph svg { width: 40%; }
.device.desktop .screen .ph { gap: 6px; }

.fcard-copy { display: flex; flex-direction: column; min-width: 0; }
.fcard-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stage-pill { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--bg); background: var(--accent); border-radius: 3px; padding: 3px 8px; }
.fcard-top .preview { margin-left: auto; font-size: 11px; font-weight: 600; color: #9a9a9a; border: 1px solid var(--line-3); border-radius: 999px; padding: 6px 13px; transition: border-color .15s ease, color .15s ease; }
.fcard-top .preview:hover { border-color: #555; color: #fff; }
.fcard h2 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 6px; }
.fcard .does { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.fcard .desc { color: var(--muted); font-size: 13px; line-height: 1.55; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.klabel { font-size: 10px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.arrows { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 16px; }
.arrows li { font-size: 12.5px; font-weight: 500; color: #cfcfcf; position: relative; padding-left: 20px; line-height: 1.5; }
.arrows li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.acc { border: 1px solid var(--line-2); border-radius: 10px; background: var(--card-2); margin-top: 8px; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 12.5px; font-weight: 600; color: var(--txt-2); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--dim); font-size: 14px; }
.acc[open] summary::after { content: '−'; }
.acc summary:hover { color: var(--accent); }
.acc .body { padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; font-weight: 500; border: 1px solid var(--line-3); border-radius: 999px; padding: 5px 11px; color: #9a9a9a; }
.chip.link { color: var(--accent); transition: border-color .15s ease; }
.chip.link:hover { border-color: var(--accent); }
.demo-box {
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); width: min(720px, 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px 28px;
}
.demo-box svg { width: 46%; opacity: .85; }
.demo-box .note { font-size: 10px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.demo-box p { color: var(--muted); font-size: 13px; max-width: 30rem; line-height: 1.55; }

/* ------------------------------------------------------------- footer */
.appr-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.appr-foot .fl { display: flex; align-items: center; gap: 14px; }
.appr-foot .logo-mobi { height: 15px; width: auto; display: block; opacity: .9; }
.appr-foot .fsep { width: 1px; height: 14px; background: #2a2a2a; flex-shrink: 0; }
.appr-foot .logo-sa { height: 13px; width: auto; display: block; opacity: .6; }
.appr-foot .fr { font-size: 10px; color: var(--faint); letter-spacing: 1.5px; text-transform: uppercase; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  body { padding: 32px 20px 56px; }
  .viewer-bar, .viewer-body { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1000px) {
  .fcard { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .fcard-media { min-height: 540px; }
}
@media (max-width: 640px) {
  .appr-head { flex-wrap: wrap; row-gap: 14px; }
  .appr-head .lbl { letter-spacing: 1.6px; white-space: nowrap; }
  .appr-head .hr { margin-left: auto; }
  .appr-head .navl { width: 100%; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .fcard-media { min-height: 460px; }
  .device.phone { transform: scale(.7); }
  .arrows { grid-template-columns: 1fr; }
}
