@font-face {
  font-family: 'Bradesco Sans';
  src: url('./fonts/BradescoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bradesco Sans';
  src: url('./fonts/BradescoSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bradesco Sans';
  src: url('./fonts/BradescoSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bradesco Sans';
  src: url('./fonts/BradescoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bradesco Sans';
  src: url('./fonts/BradescoSans-XBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2540;
  --muted: #726b80;
  --blue: #4f3aaf;
  --blue-dark: #3f2e8c;
  --green: #20a879;
  --line: #e9e3f2;
  --surface: #fff;
  --page: #f8f6fc;
  font-family: 'Bradesco Sans', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 82% 15%, rgba(32, 168, 121, 0.07), transparent 25rem),
    var(--page);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(225, 218, 238, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(220px, 42vw);
  height: auto;
}

.header-label {
  padding: 9px 14px;
  border: 1px solid #e6dff1;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.header-label strong,
.site-footer strong {
  color: var(--blue);
}

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 54px 0 60px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 168, 121, 0.12);
}

h1,
h2,
h3 {
  font-family: 'Bradesco Sans', Arial, sans-serif;
}

h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(2.65rem, 5.5vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

h1 span {
  color: var(--blue);
  white-space: nowrap;
}

.hero-description {
  max-width: 510px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 20px;
  padding: 0 19px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(79, 58, 175, 0.17);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-link:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 11px 22px rgba(79, 58, 175, 0.23);
}

.primary-link span {
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.submission-shortcut {
  color: var(--blue);
  font-size: 0.85rem;
  text-underline-offset: 3px;
}

.submission-shortcut:focus-visible {
  outline: 3px solid #927edb;
  outline-offset: 3px;
}

.hero-art {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(79, 58, 175, 0.12);
  border-radius: 50%;
}

.orbit-one {
  width: 280px;
  height: 280px;
}

.orbit-two {
  width: 220px;
  height: 220px;
  border-style: dashed;
  border-color: rgba(32, 168, 121, 0.25);
}

.hero-card {
  position: relative;
  width: 210px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  box-shadow: 0 24px 60px rgba(63, 46, 140, 0.23);
  font-family: 'Bradesco Sans', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  transform: rotate(-5deg);
  transition: transform 220ms ease;
}

.hero-card:hover {
  transform: rotate(0) translateY(-4px);
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: #9ce5c8;
  font-size: 1.7rem;
  font-weight: 400;
}

.hero-card-mark {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Bradesco Sans', Arial, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

.hero-card-mark i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: #64d5a5;
}

.plus {
  position: absolute;
  color: #64c99e;
  font-size: 2rem;
  font-weight: 400;
}

.plus-one {
  top: 23px;
  right: 15%;
}

.plus-two {
  bottom: 20px;
  left: 12%;
  color: #aa98dc;
  font-size: 1.4rem;
}

.documents {
  padding: 42px 0 34px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
}

.section-note {
  max-width: 330px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: #b7a7df;
}

.filter-button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.results-count {
  margin: 17px 0 11px;
  color: var(--muted);
  font-size: 0.8rem;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(79, 58, 175, 0.035);
  animation: card-in 220ms ease both;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.document-card:hover {
  transform: translateY(-3px);
  border-color: #c9bce9;
  box-shadow: 0 15px 32px rgba(79, 58, 175, 0.09);
}

.document-card[hidden] {
  display: none;
}

.document-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--blue);
  background: #f1eef9;
}

.document-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.document-category {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-card h3 {
  margin: 7px 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.document-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.document-link span {
  font-size: 1.1rem;
  transition: transform 150ms ease;
}

.document-link:hover span {
  transform: translate(2px, -2px);
}

.document-link:focus-visible,
.primary-link:focus-visible,
.brand:focus-visible,
.footer-brand:focus-visible,
.privacy-link:focus-visible,
.filter-button:focus-visible,
.send-email:focus-visible,
.contact-field input:focus-visible,
.contact-field select:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid #927edb;
  outline-offset: 3px;
}

.empty-state {
  margin: 24px 0;
  color: var(--muted);
  text-align: center;
}

.help-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 7px 0 48px;
  padding: 17px 19px;
  border: 1px solid #e3dcf2;
  border-radius: 9px;
  background: #f3f0fa;
}

.help-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid #b9a9df;
  border-radius: 50%;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.help-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-footer {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 88px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-brand img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand:hover {
  text-decoration: underline;
}

.privacy-link {
  color: var(--blue);
  text-underline-offset: 3px;
}

.privacy-link:hover {
  color: var(--blue-dark);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(79, 58, 175, 0.17);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--blue-dark);
}

.back-to-top[hidden],
.send-email[hidden] {
  display: none;
}

.submission {
  padding: 38px 0 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
  text-align: center;
}

.submission .section-heading {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.submission .eyebrow {
  justify-content: center;
}

.submission .section-note {
  max-width: 680px;
}

.submission-contact {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.contact-intro {
  margin: 0 0 16px;
  font-weight: 600;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: left;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-field input,
.contact-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #927edb;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.contact-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-email {
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding-block: 12px;
  line-height: 1.4;
}

.contact-email span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: inherit;
}

.send-email {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  color: var(--blue);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.send-email:hover {
  background: #f3f0fa;
}

.email-draft-status {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 0.85rem;
}

.email-draft-status:empty {
  display: none;
}

.contact-checklist {
  display: table;
  max-width: 100%;
  margin: 22px auto;
  padding-left: 22px;
  line-height: 1.75;
  text-align: left;
}

.contact-guidance {
  max-width: 800px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 36px, 600px);
  }

  .site-header {
    height: 76px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 48px 0 36px;
  }

  .hero-art {
    min-height: 210px;
  }

  .orbit-one {
    width: 220px;
    height: 220px;
  }

  .orbit-two {
    width: 174px;
    height: 174px;
  }

  .hero-card {
    width: 168px;
    min-height: 180px;
    padding: 18px;
    font-size: 1.05rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .section-note {
    max-width: 440px;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .header-label {
    padding: 8px 10px;
    font-size: 0.73rem;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .documents {
    padding-top: 32px;
  }

  .filters {
    gap: 7px;
  }

  .filter-button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.79rem;
  }

  .document-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .document-card {
    min-height: 225px;
    padding: 21px;
  }

  .submission-contact {
    padding: 18px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .help-note {
    margin-bottom: 30px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 15px 0 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
