/* Palette comes from the SDG Archon logo: charcoal field, brass crown, white circuit traces. */
:root {
  --carvao: #363636;
  --carvao-fundo: #2b2b2b;
  --latao: #a98848;
  --latao-claro: #c9ad72;
  --latao-escuro: #6e5828;
  --latao-faixa: #c4a565;
  --papel: #ffffff;
  --nevoa: #ecece8;
  --tinta: #262624;
  --tinta-suave: #5c5c58;
  --prata-clara: #b5b5b1;
  --linha: #d9d9d4;

  --muted: var(--tinta-suave);
  --focus: var(--latao-escuro);
  --crown-bg: var(--carvao);
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
[id] { scroll-margin-top: 4.5rem; }

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

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.5rem 1rem; background: var(--latao-claro); color: var(--tinta);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap { max-width: 77rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Type scale: 14 / 16 / 18 / 21 / 24 / 36–48 / 42–72 */
h1 {
  font-size: clamp(2.625rem, 4.6vw + 0.75rem, 4.5rem);
  font-stretch: 112%;
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(2rem, 2.4vw + 1.25rem, 3rem);
  font-stretch: 108%;
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.5rem; line-height: 1.25; }
.lead { font-size: 1.3125rem; line-height: 1.5; color: var(--muted); max-width: 38rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border: 1px solid transparent; border-radius: 3px;
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-gold { background: var(--latao-claro); color: var(--tinta); }
.btn-gold:hover { background: #d8c08d; }
.btn-ghost { border-color: var(--prata-clara); color: var(--papel); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); border-color: var(--papel); }
.btn-dark { background: var(--carvao); color: var(--papel); }
.btn-dark:hover { background: var(--carvao-fundo); }

/* Bands */
.band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.band-light { background: var(--papel); }
.band-mist { background: var(--nevoa); }
.band-dark, .nav, .footer {
  --muted: var(--prata-clara);
  --focus: var(--latao-claro);
  background: var(--carvao);
  color: var(--papel);
}
.band-brass { --muted: var(--tinta); --focus: var(--tinta); background: var(--latao-faixa); color: var(--tinta); }

.section-head { max-width: 46rem; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head .lead { margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split h2 { margin-bottom: 1.25rem; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #4a4a47; }
.nav-row { display: flex; align-items: center; gap: 2.5rem; min-height: 4rem; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  font-size: 0.9375rem; font-weight: 500; color: #e6e6e3; text-decoration: none;
  text-decoration-thickness: 2px; text-underline-offset: 0.5em;
}
.nav-links a:hover { color: var(--papel); text-decoration-line: underline; text-decoration-color: var(--latao); }

.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: #f4f4f2; text-decoration: none; }
.brand-mark { width: 2.25rem; height: 1.83rem; }
.brand-name { font-size: 1.0625rem; font-stretch: 118%; font-weight: 650; letter-spacing: 0.01em; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* The answer sheet: legal text set in Spectral, the product's voice in Archivo */
.sheet-figure { margin: 0 0 0 auto; max-width: 33rem; }
.sheet {
  --muted: var(--tinta-suave);
  --focus: var(--latao-escuro);
  padding: 1.375rem 1.75rem 1.25rem;
  background: var(--papel);
  color: var(--tinta);
  border-radius: 4px;
  box-shadow: 0 32px 64px -24px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.25);
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.875rem; margin-bottom: 1.125rem;
  border-bottom: 1px solid var(--linha);
  font-size: 0.875rem;
}
.sheet-mode { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.sheet-mode::before {
  content: ""; width: 0.75rem; height: 0.75rem;
  border: 2px solid var(--latao); border-radius: 50%;
}
.sheet-stamp { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--latao-escuro); font-weight: 600; }
.sheet-stamp svg, .status-done svg { width: 1rem; height: 1rem; }
.sheet-question {
  margin: 0 0 1.25rem; padding: 0.75rem 1rem;
  background: var(--nevoa); border-radius: 3px;
  font-size: 0.9375rem; line-height: 1.5; color: #3e3e3b;
}
.sheet-answer p { margin: 0 0 0.875rem; font-family: "Spectral", Georgia, serif; font-size: 1.0625rem; line-height: 1.65; }
.sheet-answer sup, .sheet-sources li::before {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 600; color: var(--latao-escuro);
}
.sheet-answer sup { font-size: 0.7em; line-height: 0; padding-left: 0.1em; }
.sheet-answer .sheet-caveat { padding-left: 0.875rem; border-left: 3px solid var(--latao); font-size: 1rem; }
.sheet-caveat strong { font-weight: 500; }
.sheet-sources {
  display: grid; gap: 0.375rem;
  margin: 1.125rem 0 0; padding: 0.875rem 0 0;
  border-top: 1px solid var(--linha);
  list-style: none; counter-reset: fonte;
  font-size: 0.875rem;
}
.sheet-sources li { display: flex; align-items: baseline; gap: 0.625rem; counter-increment: fonte; }
.sheet-sources li::before { content: counter(fonte); min-width: 0.75rem; font-size: 0.8125rem; }
.sheet-sources cite { font-style: normal; font-weight: 600; }
.status { display: inline-grid; margin-left: auto; justify-items: end; }
.status > span { grid-area: 1 / 1; }
.status-wait { color: var(--tinta-suave); }
.status-done { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--latao-escuro); font-weight: 500; }
.sheet-figure figcaption { margin-top: 0.875rem; font-size: 0.875rem; color: var(--prata-clara); }

/* The one orchestrated moment: the citations get checked, then the answer is stamped. */
@media (prefers-reduced-motion: no-preference) {
  .status-wait { animation: pulse 0.7s ease-in-out infinite alternate, hide 0.15s ease-out forwards; }
  .status-done, .sheet-stamp { animation: reveal 0.35s ease-out both; }
  .sheet-sources li:nth-child(1) .status-wait { animation-delay: 0s, 1.3s; }
  .sheet-sources li:nth-child(1) .status-done { animation-delay: 1.3s; }
  .sheet-sources li:nth-child(2) .status-wait { animation-delay: 0s, 2s; }
  .sheet-sources li:nth-child(2) .status-done { animation-delay: 2s; }
  .sheet-stamp { animation-name: stamp; animation-duration: 0.4s; animation-delay: 2.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .status-wait { display: none; }
}
@keyframes pulse { from { opacity: 1; } to { opacity: 0.35; } }
@keyframes hide { to { opacity: 0; visibility: hidden; } }
@keyframes reveal { from { opacity: 0; transform: translateY(3px); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.25); } }

/* Product and modes */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.product-logo { width: 100%; height: auto; }
.intro h2 { margin-bottom: 1.25rem; }
.intro .lead { margin: 0; }

.mode-group + .mode-group { margin-top: 3.5rem; }
.mode-group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem;
  padding-top: 1.125rem; border-top: 3px solid var(--tinta);
}
.mode-group-audited .mode-group-head { border-top-color: var(--latao); }
.mode-group-head p { margin: 0; font-size: 1rem; color: var(--muted); }
.mode {
  display: grid;
  grid-template-columns: 11rem repeat(3, minmax(0, 1fr));
  gap: 0.5rem 2.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--linha);
}
.mode h4 { font-size: 1.3125rem; font-stretch: 110%; line-height: 1.3; }
.mode p { margin: 0; font-size: 1rem; line-height: 1.55; }
.mode blockquote { margin: 0; font-family: "Spectral", Georgia, serif; font-style: italic; font-size: 1.125rem; line-height: 1.5; }

/* Pipeline drawn as a circuit trace, like the lines inside the crown */
.circuit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: clamp(3rem, 6vw, 4rem) 0 0; padding: 0;
  list-style: none; counter-reset: etapa;
}
.circuit li { position: relative; counter-increment: etapa; }
.circuit li::before {
  content: counter(etapa);
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 2px solid var(--latao-claro); border-radius: 50%;
  background: var(--carvao);
  color: var(--latao-claro); font-size: 0.9375rem; font-weight: 600;
}
.circuit li:not(:last-child)::after {
  content: ""; position: absolute;
  top: calc(1.125rem - 1px); left: 2.25rem; right: -2rem;
  height: 2px; background: var(--latao);
}
.circuit h3 { margin: 1.25rem 0 0.625rem; font-size: 1.3125rem; font-stretch: 108%; }
.circuit p { margin: 0; font-size: 1rem; color: var(--muted); }

/* What comes with each answer */
.offers { display: grid; gap: 1.75rem; margin: 0; }
.offers dt { font-size: 1.75rem; font-stretch: 120%; font-weight: 680; line-height: 1.15; letter-spacing: -0.01em; }
.offers dd { margin: 0.375rem 0 0; font-size: 1rem; color: var(--muted); }

/* Security facts */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}
.facts > div { padding-top: 1.25rem; border-top: 2px solid var(--latao); }
.facts dt { margin-bottom: 0.5rem; font-size: 1.3125rem; font-stretch: 108%; font-weight: 600; }
.facts dd { margin: 0; max-width: 34rem; color: var(--muted); }

/* Company */
#empresa p { max-width: 38rem; color: var(--muted); }
.crown-large { justify-self: center; width: min(100%, 20rem); height: auto; aspect-ratio: 58 / 47; color: #f4f4f2; }

/* Call to action */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem 4rem; }
.cta > div:first-child { flex: 1 1 30rem; max-width: 44rem; }
.cta h2 { margin-bottom: 0.75rem; }
.cta p { margin: 0; max-width: 36rem; }
.cta-action p { margin-top: 0.75rem; font-size: 0.9375rem; }

/* Footer */
.footer { --crown-bg: var(--carvao-fundo); background: var(--carvao-fundo); color: var(--prata-clara); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 2.5rem 6rem; align-items: start; }
.footer h2 { margin-bottom: 0.75rem; font-size: 0.9375rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--papel); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: 0.5rem; }
.footer nav a { font-size: 0.9375rem; text-decoration: none; }
.footer nav a:hover { color: var(--papel); text-decoration: underline; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #444442; font-size: 0.875rem; }
.footer-legal p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .mode { grid-template-columns: 9rem minmax(0, 1fr); }
  .mode h4 { grid-row: span 3; }
  .circuit { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .circuit li:nth-child(2)::after { display: none; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-row { justify-content: space-between; }
  .hero-grid, .split, .intro { grid-template-columns: minmax(0, 1fr); }
  .sheet-figure { margin: 0; }
  .product-logo { max-width: 13rem; }
  .crown-large { justify-self: start; width: 12rem; }
}
@media (max-width: 640px) {
  .mode { grid-template-columns: minmax(0, 1fr); }
  .mode h4 { grid-row: auto; }
  .circuit { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .circuit li { padding-left: 3.25rem; }
  .circuit li::before { position: absolute; left: 0; top: 0; }
  .circuit h3 { margin-top: 0.25rem; }
  .circuit li:not(:last-child)::after, .circuit li:nth-child(2)::after {
    display: block; top: 2.25rem; bottom: -2rem; left: calc(1.125rem - 1px); right: auto;
    width: 2px; height: auto;
  }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .brand { grid-column: 1 / -1; }
  .sheet { padding-inline: 1.25rem; }
}
