:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-alt: #efede7;
  --ink: #16202a;
  --ink-soft: #4a5562;
  --accent: #1b365d;
  --accent-muted: #8a6d3b;
  --border: #dcd8ce;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  margin-left: 8px;
  border-left: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
}

.lang-switch a,
.lang-switch span {
  color: var(--ink-soft);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .lang-active {
  color: var(--accent);
  font-weight: 600;
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin-bottom: 10px;
}

/* Hero */
.hero {
  padding: 0 0 56px;
}

.hero-band {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  min-height: 560px;
}

.hero-copy {
  padding: 64px 40px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  margin: 0 -24px 0 -110px;
  min-height: 560px;
  background: var(--surface-alt);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual img {
  position: relative;
  z-index: 3;
  display: block;
  width: auto;
  max-width: 108%;
  max-height: 550px;
  height: auto;
  object-fit: contain;
  margin-left: 20px;
}

.hero-curve {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 280px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #132847;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px 26px;
}

.card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 14px;
}

.credential-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.credential-list li {
  padding-left: 14px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.credential-list li:first-child {
  border-left: none;
  padding-left: 0;
}

.cred-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.cred-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 62ch;
  margin-bottom: 32px;
}

.section-desc {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.panel p {
  color: var(--ink-soft);
  margin: 0;
}

.scope-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(27, 54, 93, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.four-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.topic-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin-bottom: 8px;
}

.topic-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* Timeline / Facts */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.timeline-block h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.fact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fact-list dt {
  font-weight: 600;
  font-size: 0.96rem;
}

.fact-list dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.contact-item:hover {
  border-color: var(--accent);
}

.contact-k {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-muted);
  font-weight: 600;
}

.contact-v {
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-pending {
  border-style: dashed;
  opacity: 0.8;
}

/* Etapas da Assistência Técnica */
.subsection-block {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.subsection-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
}

.subsection-desc {
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 68ch;
  font-size: 0.96rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.step-num {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-muted);
  margin-bottom: 8px;
}

.step-card h4 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Notas Técnicas */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.note-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.note-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}

.note-summary {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.note-expand {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.note-expand summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}

.note-expand summary::-webkit-details-marker {
  display: none;
}

.note-expand summary::after {
  content: " +";
}

.note-expand[open] summary::after {
  content: " -";
}

.note-body {
  margin-top: 12px;
  font-size: 0.89rem;
  color: var(--ink-soft);
}

.note-body p {
  margin: 0 0 10px;
}

.note-body p:last-child {
  margin-bottom: 0;
}

.note-read-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.note-read-link:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--bg);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* Impressão */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #ffffff;
    color: #111827;
    font-size: 9.5pt;
    line-height: 1.42;
  }

  .container {
    padding: 0;
    max-width: 100%;
  }

  .topbar,
  .hero-actions,
  .hero-curve,
  .doc-banner,
  .footer-links,
  .note-read-link {
    display: none !important;
  }

  .hero {
    padding: 0 0 12px;
  }

  .hero-band {
    background: #ffffff;
    border-bottom: 1.5px solid #1b365d;
    overflow: visible;
  }

  .hero-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    min-height: 0 !important;
  }

  .hero-copy {
    flex: 1;
    padding: 0 0 12px !important;
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: 19pt;
    line-height: 1.18;
    margin: 0 0 8px;
  }

  .lead {
    font-size: 9.8pt;
    margin: 0;
  }

  .hero-visual {
    flex: 0 0 96px;
    width: 96px !important;
    height: 116px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 6px;
    overflow: hidden;
    display: block !important;
  }

  .hero-visual img {
    width: 96px !important;
    height: 116px !important;
    max-width: 96px !important;
    max-height: 116px !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 6px;
  }

  .credentials {
    margin-top: 12px !important;
    padding: 12px 16px !important;
    border-top: 2px solid #1b365d;
  }

  .credential-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 18px !important;
  }

  .credential-list li {
    border-left: 1px solid #d1d5db !important;
    border-top: none !important;
    padding: 0 0 0 10px !important;
    font-size: 8.8pt;
  }

  .section,
  .section-alt {
    background: #ffffff !important;
    padding: 14px 0 !important;
    border-top: 1px solid #e5e7eb;
  }

  .section-header {
    margin-bottom: 10px !important;
  }

  .section-header h2 {
    font-size: 14.5pt;
    margin: 0 0 4px;
  }

  .section-desc,
  .subsection-desc {
    font-size: 9pt;
    margin-bottom: 10px !important;
  }

  .subsection-block {
    margin-top: 14px !important;
    padding-top: 12px !important;
  }

  .subsection-title {
    font-size: 12.5pt;
  }

  .four-col,
  .steps-grid,
  .notes-grid,
  .two-col,
  .timeline-grid,
  .contact-box {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .panel,
  .topic-card,
  .step-card,
  .note-card,
  .contact-item,
  .timeline-list li {
    padding: 10px 12px !important;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border-color: #d1d5db;
    font-size: 8.8pt;
  }

  .timeline-list li {
    padding: 0 0 8px 0 !important;
    border: none !important;
  }

  h2,
  h3,
  h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .note-card h3,
  .panel h3,
  .topic-card h3,
  .step-card h4 {
    font-size: 10.2pt;
    margin: 0 0 4px;
  }

  .footer {
    padding: 10px 0 !important;
    font-size: 8.5pt;
  }
}

/* Ações de documento */
.doc-banner {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-banner strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}

.doc-banner span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Página legal (Privacidade) */
.legal-page {
  padding: 64px 0 80px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  max-width: 780px;
}

.legal-card h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.legal-card h2 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
  color: var(--accent);
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 840px) {
  .hero-grid,
  .two-col,
  .four-col,
  .steps-grid,
  .notes-grid,
  .timeline-grid,
  .contact-box,
  .credential-list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 40px 0 32px;
  }

  .hero-visual {
    margin: 0 -24px;
    min-height: 360px;
  }

  .hero-curve {
    display: none;
  }

  .credential-list li {
    border-left: none;
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .credential-list li:first-child {
    border-top: none;
    padding-top: 0;
  }

  .hero {
    padding: 0 0 44px;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 58px;
  }

  .nav > a {
    display: none;
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}
