/* ==========================================================
   CATBET — editorial, grafite & menta
   Fundo #101214 · header/footer #0A0B0C · blocos #181B1E
   Faixas claras #1D2125 · acento #9FB8AD · texto #E8E9E6
   ========================================================== */

:root {
  --bg: #101214;
  --bg-deep: #0A0B0C;
  --card: #181B1E;
  --band: #1D2125;
  --accent: #9FB8AD;
  --on-accent: #151515;
  --text: #E8E9E6;
  --muted: #A4AAA7;
  --head: #FFFFFF;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --wrap: 1120px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a {
  color: var(--head);
  text-decoration: underline;
  text-decoration-color: rgba(159, 184, 173, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: filter .2s ease;
}
a:hover { filter: brightness(1.2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--head);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.25rem); letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
strong { color: var(--head); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .6em 1em; border-radius: 6px;
}
.skip:focus { top: 12px; }

.label {
  font: 500 .76rem/1.3 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1em;
}
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--head); text-decoration: none;
  font: 600 1.1rem/1 var(--font-head); letter-spacing: .08em;
}
.logo svg { width: 28px; height: 28px; flex: none; }

.nav-toggle {
  margin-left: auto;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
  padding: 6px 16px 16px;
}
.nav.is-open { display: block; }
.nav a {
  display: block; padding: 12px 0;
  color: var(--text); text-decoration: none; font-size: .98rem;
  border-bottom: 1px solid var(--line);
}
.nav a[aria-current="page"] { color: var(--accent); }
.nav .nav-cta { display: flex; margin-top: 14px; padding: .7em 1.35em; border: 1px solid var(--accent); color: var(--on-accent); }

.badge18 {
  display: inline-grid; place-items: center; flex: none;
  min-width: 44px; height: 28px; padding: 0 9px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent);
  font: 600 .8rem/1 var(--font-head);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; margin-left: auto; padding: 0; border: 0; background: none; gap: 26px; }
  .nav a { border: 0; padding: 6px 0; font-size: .94rem; color: var(--muted); }
  .nav a:hover { color: var(--text); filter: none; }
  .nav a[aria-current="page"] { color: var(--head); box-shadow: inset 0 -2px 0 var(--accent); }
  .nav { align-items: center; }
  .nav .nav-cta { margin: 0 0 0 4px; min-height: 40px; padding: .5em 1.1em; color: var(--on-accent); font-size: .9rem; }
  .nav .nav-cta:hover { color: var(--on-accent); filter: brightness(1.15); }
  .site-header .badge18 { margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7em 1.35em;
  border-radius: 8px; border: 1px solid var(--accent);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: filter .2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--head); border-color: var(--line-strong); }
.btn:hover { filter: brightness(1.15); }
.btn-ghost:hover { filter: brightness(1.4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8em; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 0;
  background: radial-gradient(640px 420px at 88% 0%, rgba(159, 184, 173, .14), transparent 70%);
}
/* Imagem de fundo do primeiro bloco (gato no centro da imagem: o recorte muda por breakpoint) */
.hero-photo {
  background:
    linear-gradient(180deg, rgba(16, 18, 20, .55) 0%, rgba(16, 18, 20, .86) 42%, rgba(16, 18, 20, .96) 100%),
    url("../img/banner-bg-20.webp") 50% 0 / auto 460px no-repeat,
    var(--bg);
}
@media (min-width: 768px) {
  .hero-photo {
    background:
      linear-gradient(90deg, rgba(16, 18, 20, .96) 0%, rgba(16, 18, 20, .86) 45%, rgba(16, 18, 20, .35) 75%, rgba(16, 18, 20, .15) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(16, 18, 20, 0) 32%),
      url("../img/banner-bg-20.webp") 35% 50% / cover no-repeat,
      var(--bg);
  }
}
@media (min-width: 1200px) {
  .hero-photo { background-position: 0 0, 0 0, 0 50%, 0 0; }
}
.hero h1 { max-width: 840px; }
.hero-lead { max-width: 680px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin: 56px 0 0; border-top: 1px solid var(--line);
}
.hero-facts div { padding: 22px 0; }
.hero-facts dt { font-size: .82rem; color: var(--muted); margin-bottom: .2em; }
.hero-facts dd { margin: 0; font: 600 1.35rem/1.2 var(--font-head); color: var(--head); }
@media (min-width: 768px) {
  .hero { padding-top: 96px; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .hero-facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
}

.page-hero { padding: 48px 0 44px; background: radial-gradient(520px 320px at 92% 0%, rgba(159, 184, 173, .12), transparent 70%); }
.page-hero .hero-lead { color: var(--text); }
@media (min-width: 768px) { .page-hero { padding: 72px 0 60px; } }

.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1.4em; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.breadcrumbs li + li::before { content: "/"; color: var(--accent); margin-right: .5em; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }

/* ---------- 18+ notice ---------- */
.notice { background: var(--band); border-block: 1px solid var(--line-strong); }
.notice-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 18px; }
.notice p { margin: 0; flex: 1 1 320px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.notice p strong { color: var(--head); margin-right: .35em; }
.notice-link { color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.notice-link::after { content: " →"; }

/* ---------- Rows (título à esquerda, texto à direita) ---------- */
.row { padding: 56px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 64px; }
.row-body { max-width: 720px; min-width: 0; }
.row-body > :last-child { margin-bottom: 0; }
.row-body h3 { margin-top: 1.6em; }
.row-body > h3:first-child { margin-top: 0; }
.band { background: var(--band); border-block: 1px solid var(--line-strong); }
.band + .band { border-top: 0; }
@media (min-width: 960px) {
  .row { padding: 80px 0; }
  .row-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .row-head { position: sticky; top: 96px; align-self: start; }
}

/* Lists */
.row-body ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.row-body ul li { position: relative; padding-left: 1.4em; margin: .5em 0; }
.row-body ul li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.row-body ol { list-style: none; counter-reset: n; padding: 0; margin: 0 0 1.2em; }
.row-body ol li { counter-increment: n; position: relative; padding-left: 2em; margin: .6em 0; }
.row-body ol li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  font: 600 1rem/1.7 var(--font-head); color: var(--accent);
}

/* Cards */
.card { background: var(--card); border-radius: 12px; padding: 24px; }
.card > :last-child { margin-bottom: 0; }

/* Categories */
.cats { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 700px) { .cats { grid-template-columns: 1fr 1fr; } }
.cat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 210px; padding: 22px 22px 20px;
  background:
    radial-gradient(260px 190px at 100% 0%, rgba(159, 184, 173, .3), transparent 70%),
    var(--card);
  border: 1px solid rgba(159, 184, 173, .4); border-radius: 14px;
  color: var(--text); text-decoration: none;
  transition: filter .2s ease;
}
.cat::before {
  content: ""; position: absolute; left: 22px; top: 0;
  width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent);
}
.cat:hover { filter: brightness(1.18); }
.cat-tag {
  align-self: flex-start;
  padding: .3em .7em; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.cat h3 { margin: .25em 0 0; font-size: 1.3rem; color: var(--head); }
.cat p { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.6; }
.cat-go {
  margin-top: auto; align-self: flex-end;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}

/* Table */
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { width: 100%; min-width: 460px; border-collapse: collapse; }
th {
  text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-strong);
  font: 500 .8rem/1.3 var(--font-body); color: var(--muted);
}
td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { color: var(--head); font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; transition: filter .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { filter: brightness(1.2); }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-item h3 { margin: 0; font-size: 1.08rem; }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { margin: 0; }
.closing { margin-top: 28px; color: var(--muted); }

/* Help & contact */
.help-grid { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .help-grid { grid-template-columns: 1fr 1fr; } }
.help { display: flex; flex-direction: column; gap: 4px; }
.help h3 { margin: 0; font-size: 1.02rem; }
.help .number { margin: .2em 0; font: 600 1.6rem/1.2 var(--font-head); color: var(--accent); }
.help p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.help .link { margin-top: auto; padding-top: 8px; font-size: .92rem; }

.contact { margin-top: 1.4em; }
.contact dl { margin: 0; display: grid; gap: 12px; }
.contact dt { font-size: .82rem; color: var(--muted); }
.contact dd { margin: 0; color: var(--head); font-weight: 500; }

/* TOC */
.toc { margin-top: 28px; background: var(--card); border-radius: 12px; }
.toc summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 .95rem/1.2 var(--font-head); color: var(--head);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.toc[open] summary::after { transform: rotate(225deg); }
.toc ol { margin: 0; padding: 0 20px 18px 40px; color: var(--muted); }
.toc li { margin: .35em 0; font-size: .95rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); filter: none; }
@media (min-width: 768px) { .toc ol { columns: 2; column-gap: 40px; } .toc li { break-inside: avoid; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand p { color: var(--muted); margin: 1em 0 0; max-width: 340px; }
.footer-title { font: 600 .9rem/1.2 var(--font-head); color: var(--head); margin: 0 0 1em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .45em 0; }
.footer-links a, .link-btn { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .link-btn:hover { color: var(--text); filter: none; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: inherit; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .84rem;
}
.footer-bottom p { margin: 0; flex: 1 1 300px; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; right: 16px; bottom: 16px; left: 16px;
  max-width: 420px; margin-left: auto;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  padding: 18px; font-size: .9rem;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { margin: 0 0 14px; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { min-height: 38px; padding: .5em 1.1em; font-size: .88rem; }

/* ---------- 404 ---------- */
.error-code { font: 600 clamp(4.5rem, 18vw, 8rem)/1 var(--font-head); color: var(--accent); letter-spacing: -.04em; margin: 0 0 .2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
