/* ─── QUAD — Base CSS compartilhado entre templates pSEO ─────────────────── */

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

:root {
  --bg:         #0a0a0b;
  --bg-2:       #0e0e11;
  --card:       #121217;
  --surface:    #17171d;
  --surface-2:  #1c1c23;
  --red:        #D52B34;
  --red-dark:   #A1242A;
  --red-glow:   rgba(213, 43, 52, 0.18);
  --red-faint:  rgba(213, 43, 52, 0.05);
  --red-line:   rgba(213, 43, 52, 0.30);
  --steel:      #293541;
  --steel-2:    #354859;
  --text:       #ffffff;
  --text-2:     rgba(255, 255, 255, 0.72);
  --text-3:     rgba(255, 255, 255, 0.48);
  --text-4:     rgba(255, 255, 255, 0.22);
  --hairline:   rgba(255, 255, 255, 0.07);
  --hairline-2: rgba(255, 255, 255, 0.12);
  --display:    'Mona Sans', ui-sans-serif, system-ui, sans-serif;
  --body:       'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono:       'Fragment Mono', ui-monospace, monospace;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 2000;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
::selection { background: var(--red); color: #fff; }
.accent { color: var(--red); }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 68px; padding: 0 28px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-brand img { width: 24px; height: auto; }
.nav-brand-mid { color: var(--text-3); font-weight: 500; }
.nav-links { display: none; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--text-2);
  font-family: var(--body); letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 11px 18px;
  border: 1px solid var(--red); background: var(--red); color: #fff;
  border-radius: 2px; font-family: var(--body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover { background: var(--red-dark); border-color: var(--red-dark); }
@media (min-width: 960px) { .nav-links { display: flex; } .nav { padding: 0 44px; } }

/* ═══════════════ BREADCRUMB ═══════════════ */
.breadcrumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
  padding: 20px 28px 0;
  max-width: 960px; margin: 0 auto;
}
.breadcrumb a { color: var(--text-3); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { opacity: 0.4; margin: 0 6px; }
.breadcrumb-current { color: var(--text-2); }
@media (min-width: 720px) { .breadcrumb { padding: 28px 44px 0; } }

/* ═══════════════ BTN ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 14px; padding: 17px 30px;
  border: 1px solid var(--red); border-radius: 2px;
  font-family: var(--body); font-weight: 600;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.3s var(--ease);
  cursor: pointer; background: transparent; color: var(--text);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  box-shadow: 0 14px 34px -14px rgba(213, 43, 52, 0.55);
}
.btn-ghost { border-color: var(--hairline-2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.btn .arrow {
  width: 16px; height: 10px; position: relative;
  transition: transform 0.3s var(--ease);
}
.btn .arrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 100%; height: 1.5px; background: currentColor;
  transform: translateY(-50%);
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(5px); }

/* ═══════════════ CONTAINER ═══════════════ */
main.pseo {
  flex: 1;
  padding: 36px 28px 60px;
}
.pseo-inner { max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) {
  main.pseo { padding: 48px 44px 80px; }
}

/* ═══════════════ TAG ═══════════════ */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--red-line);
  background: var(--red-faint);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 22px;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ═══════════════ HERO ═══════════════ */
.pseo-hero {
  position: relative; padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}
.pseo-hero::before {
  content: ''; position: absolute;
  top: -40px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--red-glow), transparent 65%);
  filter: blur(40px); pointer-events: none; z-index: -1;
}
.pseo-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.pseo-h1 .accent { color: var(--red); }
.pseo-intro {
  font-size: 18px; line-height: 1.6;
  color: var(--text-2); max-width: 680px;
}

/* ═══════════════ SECTIONS ═══════════════ */
.pseo-section { margin-bottom: 44px; }
.pseo-section h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 30px);
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 18px;
  padding-top: 8px;
}
.pseo-section h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 19px; letter-spacing: -0.015em;
  color: var(--text); margin: 24px 0 10px;
}
.pseo-section p {
  font-size: 16px; line-height: 1.7;
  color: var(--text-2); margin-bottom: 16px;
}
.pseo-section p:last-child { margin-bottom: 0; }
.pseo-section strong { color: var(--text); font-weight: 600; }
.pseo-section a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pseo-section a:hover { text-decoration-thickness: 2px; }

/* ═══════════════ BULLETS ═══════════════ */
.bullet-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  margin: 14px 0 18px;
}
.bullet-list li {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--text); font-size: 15.5px; line-height: 1.55;
}
.bullet-list svg {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--red); margin-top: 2px;
}

/* ═══════════════ FAQ ═══════════════ */
.faq-list {
  display: flex; flex-direction: column; gap: 8px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 3px; overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--red-line); }
.faq-item summary {
  cursor: pointer; padding: 18px 22px;
  font-family: var(--display); font-weight: 600;
  font-size: 16px; color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--mono);
  font-size: 20px; color: var(--red); line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px; color: var(--text-2); line-height: 1.7;
}
.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ═══════════════ RELATED TERMS (links horizontais) ═══════════════ */
.related-terms {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0;
}
.related-link {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}
.related-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
}

/* ═══════════════ CTA CARD (no fim da página) ═══════════════ */
.pseo-cta {
  margin-top: 56px; padding: 36px 32px;
  background: linear-gradient(135deg, var(--red-faint), transparent 60%), var(--card);
  border: 1px solid var(--red-line); border-radius: 4px;
  position: relative; overflow: hidden;
}
.pseo-cta::before {
  content: ''; position: absolute;
  top: -1px; left: -1px;
  width: 44px; height: 44px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  border-top-left-radius: 4px;
}
.pseo-cta h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 3.2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--red);
  margin-bottom: 10px;
}
.pseo-cta p {
  font-size: 15.5px; line-height: 1.6;
  color: var(--text-2); margin-bottom: 22px;
  max-width: 560px;
}
.pseo-cta .cta-group {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ═══════════════ AUTHOR / METADATA ═══════════════ */
.pseo-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  flex-wrap: wrap;
}
.pseo-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-4); }
.pseo-meta.pseo-dates {
  margin-top: 10px; padding-top: 10px; border-top: none;
  font-size: 10px; color: var(--text-4);
}
.pseo-meta.pseo-dates time { font-family: var(--mono); }

/* ═══════════════ FOOTER ═══════════════ */
.pseo-footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 40px 28px 28px;
}
.pseo-footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-4);
}
.pseo-footer-inner a { color: var(--text-3); }
.pseo-footer-inner a:hover { color: var(--red); }
@media (min-width: 720px) { .pseo-footer { padding: 56px 44px 36px; } }

/* ═══════════════ HUB LISTING (pra /o-que-e/index.html etc.) ═══════════════ */
.hub-alpha {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 32px;
}
.hub-alpha-item {
  display: block; padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--text); font-size: 14.5px;
  transition: all 0.2s var(--ease);
}
.hub-alpha-item:hover {
  border-color: var(--red);
  background: var(--red-faint);
  color: var(--red);
  transform: translateX(3px);
}
.hub-letter {
  grid-column: 1 / -1;
  font-family: var(--display); font-weight: 800;
  font-size: 28px; color: var(--red);
  letter-spacing: -0.02em;
  margin: 28px 0 6px;
  line-height: 1;
}
.hub-letter:first-child { margin-top: 0; }

/* ═══════════════ ANIMAÇÕES ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pseo-hero, .pseo-section { animation: fadeUp 0.5s var(--ease) both; }
.pseo-hero { animation-delay: 0.05s; }
