/* ─────────────────────────────────────────────────────────────
   OABeiros Hub · pop-brutalista editorial
   Tokens canônicos OABeiros (mesmo design system de leocastro.com.br)
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Plus Jakarta Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-variable.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-variable.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

:root {
  --paper:        #F2EAD8;
  --paper-deep:   #E8DEC6;
  --ink:          #1A1A1A;
  --ink-soft:     #2E2E2E;
  --muted:        #555060;
  --line:         rgba(26, 26, 26, 0.12);
  --line-strong:  rgba(26, 26, 26, 0.22);

  --yellow:       #FFD93D;
  --yellow-deep:  #F1B900;
  --red:          #E63946;
  --red-deep:     #A41F2A;
  --blue:         #1479FF;
  --green:        #29AA6D;
  --purple:       #5B3FAD;
  --navy:         #0B1840;
  --cream-warm:   #FFF1CC;

  --shadow-hard:  4px 4px 0 var(--ink);
  --shadow-hard-lg: 8px 8px 0 var(--ink);

  --radius:       18px;
  --radius-sm:    12px;

  --font-display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-ui:      "Plus Jakarta Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 14% 10%, rgba(255, 217, 61, 0.20), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(230, 57, 70, 0.10), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(20, 121, 255, 0.06), transparent 48%);
  overflow-x: hidden;
}

.iconSprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

.srOnly {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  border: 0; padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─────────── App shell ─────────── */
.appShell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* ─────────── Sidebar ─────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px 30px;
  background: var(--ink);
  color: var(--paper);
  border-right: 3px solid var(--ink);
  overflow-y: auto;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  transform: rotate(-1deg);
  align-self: start;
  margin-bottom: 6px;
}
.brand img {
  width: 110px;
  height: auto;
  filter: brightness(0);
}
.brand span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.navBlock { display: flex; flex-direction: column; gap: 6px; }
.navBlockSecondary { margin-top: auto; }

.navLabel {
  margin: 14px 6px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.92;
}

.navItem, .navLink {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  color: rgba(242, 234, 216, 0.85);
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.navItem strong {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(242, 234, 216, 0.1);
  color: var(--yellow);
  border-radius: 999px;
}
.navItem:hover, .navLink:hover {
  background: rgba(255, 217, 61, 0.10);
  color: var(--paper);
  border-color: rgba(255, 217, 61, 0.30);
}
.navItem.is-active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}
.navItem.is-active strong {
  background: var(--ink);
  color: var(--yellow);
}

.navGlyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.navGlyph svg {
  width: 100%; height: 100%;
  stroke: currentColor; stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

.sideNote {
  padding: 16px 14px;
  background: rgba(255, 217, 61, 0.08);
  border: 1.5px dashed rgba(255, 217, 61, 0.40);
  border-radius: 12px;
  display: grid;
  gap: 4px;
}
.sideNote span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.sideNote strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  line-height: 1.05;
}
.sideNote small {
  font-size: 0.78rem;
  color: rgba(242, 234, 216, 0.72);
  line-height: 1.4;
}

/* ─────────── Main ─────────── */
.main {
  padding: 22px clamp(18px, 3.5vw, 46px) 60px;
  min-width: 0;
}

/* ─────────── Topbar (search + actions) ─────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  margin-bottom: 28px;
}
.search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.searchIcon {
  position: absolute; left: 12px;
  width: 18px; height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}
.searchIcon svg {
  width: 100%; height: 100%;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.search input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  font-family: inherit; font-size: 0.95rem;
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.topActions { display: inline-flex; gap: 10px; }

.ghostButton, .darkButton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-ui); font-weight: 800; font-size: 0.86rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  white-space: nowrap;
}
.darkButton {
  background: var(--red-deep);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.darkButton:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); background: var(--red); }
.ghostButton {
  background: transparent;
  color: var(--ink);
}
.ghostButton:hover { background: var(--ink); color: var(--paper); }

/* ─────────── Hero ─────────── */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--cream-warm);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-hard-lg);
  margin-bottom: 32px;
  background-image: radial-gradient(circle at center, rgba(26,26,26,0.04) 1px, transparent 1px);
  background-size: 14px 14px;
}
.heroCopy { display: flex; flex-direction: column; gap: 16px; }

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.heroLogo {
  width: clamp(220px, 28vw, 360px);
  height: auto;
  filter: brightness(0);
}

.heroLead {
  margin: 0;
  max-width: 520px;
  font-size: 1.04rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.heroStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 0;
  max-width: 480px;
}
.heroStats > div {
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.heroStats dt {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
}
.heroStats dd {
  margin: 4px 0 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
}

.heroActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.heroActions .darkButton, .heroActions .ghostButton {
  padding: 12px 22px; font-size: 0.94rem;
}

/* Release panel */
.releasePanel {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--red);
  align-self: start;
  position: relative;
  overflow: hidden;
}
.releasePanel::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.18), transparent 70%);
  pointer-events: none;
}
.releaseKicker {
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--yellow);
}
.releaseIcon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.releasePanel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--paper);
}
.releasePanel p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(242, 234, 216, 0.86);
  line-height: 1.5;
}
.releaseLink {
  display: inline-flex; align-items: center;
  margin-top: 4px;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 3px 3px 0 var(--paper);
  align-self: start;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.releaseLink:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--paper); }

/* ─────────── Section header ─────────── */
.sectionHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 16px;
  padding: 0 4px;
}
.sectionHeader h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  color: var(--ink);
}
.sectionHeader span {
  padding: 6px 12px;
  background: var(--yellow);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─────────── App grids ─────────── */
.featuredGrid, .appGrid {
  display: grid;
  gap: 18px;
}
.featuredGrid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.appGrid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 16px;
}

/* App card */
.appCard {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  min-height: 220px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.appCard:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.appCard.featured {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    var(--card-gradient, linear-gradient(135deg, #FFD93D, #E63946));
}
.appCard.dimmed { opacity: 0.78; }
.appCard.dimmed:hover { opacity: 1; }

.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.appIcon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  background: var(--card-gradient, linear-gradient(135deg, #FFD93D, #E63946));
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.appBadge {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.cardBody { display: flex; flex-direction: column; gap: 6px; }
.cardBody h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}
.cardBody p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cardFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
}
.meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700;
  color: var(--muted);
}
.statusDot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status, var(--green));
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}
.cardButton {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.cardButton:hover { background: var(--yellow); color: var(--ink); }
.appCard.dimmed .cardButton {
  background: transparent;
  color: var(--ink);
}

/* ─────────── Footer ─────────── */
.footerCard {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: end;
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-hard-lg);
}
.footerCard .eyebrow { color: var(--yellow); }
.footerCard h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--paper);
  max-width: 520px;
}
.footerLinks {
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
}
.footerLinks a {
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.94rem;
}
.footerLinks a:hover { text-decoration: underline; }

/* ─────────── Dialog ─────────── */
.appDialog {
  width: min(560px, 92vw);
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.appDialog::backdrop {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
}
.dialogContent {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
}
.dialogHero {
  padding: 26px 26px 18px;
  background: var(--card-gradient, linear-gradient(135deg, #FFD93D, #E63946));
  border-bottom: 2.5px solid var(--ink);
  display: flex; flex-direction: column; gap: 8px;
}
.dialogHero .appIcon {
  align-self: start;
  background: var(--paper);
}
.dialogHero h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  color: var(--ink);
}
.dialogHero p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}
.dialogList {
  margin: 0;
  padding: 18px 26px;
  list-style: none;
  display: grid; gap: 10px;
}
.dialogList li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed var(--line);
  font-size: 0.9rem;
}
.dialogList li span { color: var(--muted); }
.dialogList li strong { font-weight: 800; }
.dialogContent .darkButton {
  display: block;
  margin: 6px 26px 22px;
  text-align: center;
}
.dialogClose {
  position: absolute;
  top: 14px; right: 18px;
  z-index: 2;
  width: 34px; height: 34px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1.2rem;
  display: grid; place-items: center;
}

/* ─────────── Mobile dock ─────────── */
.mobileDock { display: none; }

/* ─────────── Responsivo ─────────── */
@media (max-width: 1024px) {
  .appShell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
  .brand { margin: 0; }
  .navBlock { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .navBlockSecondary { display: none; }
  .navItem { flex: 1 1 calc(50% - 6px); }
  .sideNote { display: none; }
  .navLabel { display: none; }

  .hero { grid-template-columns: 1fr; }
  .releasePanel { order: -1; }
  .heroLogo { width: clamp(180px, 50vw, 260px); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .sidebar { padding: 14px; }
  .navBlock { gap: 6px; }
  .navItem { padding: 9px 12px; font-size: 0.85rem; }
  .navItem strong { font-size: 0.72rem; }

  .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .topActions { width: 100%; justify-content: flex-end; }
  .topActions .ghostButton, .topActions .darkButton { padding: 8px 14px; font-size: 0.78rem; }

  .main { padding: 16px 14px 80px; }
  .hero { padding: 22px; gap: 18px; }
  .heroStats { grid-template-columns: 1fr; }
  .heroStats > div { display: flex; align-items: baseline; gap: 12px; }
  .heroStats dd { margin: 0; }

  .featuredGrid, .appGrid { grid-template-columns: 1fr; }
  .appCard { min-height: 200px; padding: 18px; }
  .footerCard { grid-template-columns: 1fr; }
  .footerLinks { text-align: left; }

  .mobileDock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 12px; left: 12px; right: 12px;
    background: var(--ink);
    color: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--red-deep);
    padding: 6px;
    z-index: 50;
  }
  .dockItem {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px;
    background: transparent;
    color: rgba(242, 234, 216, 0.78);
    border: 0;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  .dockItem.is-active {
    background: var(--yellow);
    color: var(--ink);
  }
  .dockIcon { width: 20px; height: 20px; }
  .dockIcon svg {
    width: 100%; height: 100%;
    stroke: currentColor; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
  }
}

@media (prefers-reduced-motion: reduce) {
  a, button, .navItem, .navLink, .appCard, .releaseLink {
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto !important; }
}
