/* ==========================================================================
   Aferia — styles (Inter, white/grey sections, product-UI report card)
   Inter, centered hero, pill CTAs, product-UI shot cards, grey/white sections.
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #4b4f58;
  --ink-3: #8a8f9a;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --acc: #4f46e5;
  --acc-soft: #eef0ff;
  --acc-line: #d9dcff;
  --warn: #b45309;
  --warn-soft: #fff4e5;
  --dup: #9d174d;
  --dup-soft: #fce7f3;
  --chk: #075985;
  --chk-soft: #e0f2fe;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: 24px;
  --shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.25), 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.625rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--mono);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Pills (buttons)
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.pill:hover {
  border-color: var(--ink-3);
  background: var(--bg-2);
}
.pill svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.pill--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pill--dark:hover {
  background: #26262a;
  border-color: #26262a;
}
.pill--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ctas--center {
  justify-content: center;
}
@media (max-width: 559px) {
  .ctas .pill {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 68px;
}

.brand {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 26px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--ink-2);
}

.header__spacer {
  flex: 1;
}

.header .pill--header {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .header .pill--header {
    display: inline-flex;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}
.mobile-menu a:not(.pill) {
  display: block;
  padding: 12px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .pill {
  width: 100%;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(64px, 4rem + 3vw, 96px);
}
.section--grey {
  background: var(--bg-2);
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 2rem + 1.5vw, 48px);
  text-align: center;
}
.section__head .lead {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid var(--acc-line);
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 640px;
}

.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.9375rem;
}
.fine {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 3rem + 4vw, 96px) 0 64px;
  text-align: center;
}
.hero h1 {
  max-width: 16ch;
  margin: 0 auto 22px;
}
.hero .lead {
  margin: 0 auto 32px;
  font-size: 1.1875rem;
}
.hero__note {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Shot (product-UI card)
   -------------------------------------------------------------------------- */

.shot {
  margin: 56px auto 0;
  max-width: 1000px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.app {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
}
.app__side {
  border-right: 1px solid var(--line);
  background: #fafbfc;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.app__side .v {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  display: grid;
  place-items: center;
}
.app__side i {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c3c7d0;
  border-radius: 4px;
  display: block;
}
.app__main {
  min-width: 0;
}

.app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-size: 0.9375rem;
  color: var(--ink-3);
  min-width: 0;
}
.crumb b {
  color: var(--ink);
  font-weight: 600;
}
.chip {
  flex: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  white-space: nowrap;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.kpis div {
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}
.kpis div:last-child {
  border-right: 0;
}
.kpis b {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kpis span {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* Findings table (inside shot) */
.findings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}
.findings th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.75rem;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.findings td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.findings tr:last-child td {
  border-bottom: 0;
}
.findings .art {
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
}
.findings .art small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  white-space: normal;
  font-size: 0.75rem;
  margin-top: 2px;
  max-width: 160px;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  white-space: nowrap;
}
.tag--dup {
  background: var(--dup-soft);
  color: var(--dup);
}
.tag--chk {
  background: var(--chk-soft);
  color: var(--chk);
}
.findings .impact {
  color: var(--ink-2);
}
.findings .src {
  font-size: 0.75rem;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 819px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app__side {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpis div {
    border-bottom: 1px solid var(--line);
  }
  .kpis div:nth-child(2n) {
    border-right: 0;
  }
  .kpis div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .findings thead {
    display: none;
  }
  .findings tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .findings tr:last-child {
    border-bottom: 0;
  }
  .findings td {
    display: block;
    padding: 6px 18px;
    border: 0;
  }
  .findings td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.6875rem;
    color: var(--ink-3);
  }
  .findings .art {
    width: auto;
    white-space: normal;
  }
  .findings .art small {
    max-width: none;
  }
  .findings .src {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 720px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.card__icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-weight: 600;
  font-size: 0.8125rem;
}
.card__icon svg {
  width: 18px;
  height: 18px;
}
.card__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Exemplo (full table in a shot-style card)
   -------------------------------------------------------------------------- */

.shot--plain {
  margin-top: 0;
}
.shot--plain .findings .art {
  width: auto;
}
.shot--plain .findings .art small {
  max-width: 200px;
}

.callout {
  max-width: 1000px;
  margin: 20px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.callout p {
  margin: 0;
}
.callout b {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Preço
   -------------------------------------------------------------------------- */

.price {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 2rem + 1vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.price__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-bottom: 10px;
}
.price p {
  color: var(--ink-2);
}
.price .ctas {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Quem somos
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 820px) {
  .about {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.about__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}
.fact {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.fact__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.fact p {
  margin: 0;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 400;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details > div {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.faq details > div p:last-child {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact {
  text-align: center;
}
.contact__meta {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Tender page (concursos/*)
   -------------------------------------------------------------------------- */

.tender-head {
  padding: clamp(40px, 2rem + 3vw, 64px) 0 clamp(32px, 2rem + 1vw, 48px);
}
.tender-head h1 {
  max-width: 22ch;
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}
@media (min-width: 560px) {
  .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.meta div {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.meta dd {
  margin: 0;
  font-weight: 600;
}

.deadline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 400;
}
.deadline strong {
  font-weight: 600;
  color: var(--ink);
}
.deadline svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.note-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.note-tag svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.section__head--left {
  text-align: left;
  margin-inline: 0;
}
.section__head--left .lead {
  margin-inline: 0;
}

.exemplo__more {
  max-width: 1000px;
  margin: 20px auto 0;
  font-size: 0.9375rem;
}
.exemplo__more a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}
.exemplo__more a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Prose (privacidade)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 720px;
}
.prose h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}
.prose h2 {
  font-size: 1.375rem;
  margin-top: 2em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose .lead {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 40px 0 32px;
  background: var(--ink);
  color: #a3a7b1;
  font-size: 0.9375rem;
}
.footer a {
  color: #fff;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.footer__row .brand {
  color: #fff;
}
.footer .fine {
  color: #a3a7b1;
  margin: 0;
  max-width: 70ch;
}
