@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

/* ExposedIn petroleum and teal; restraint over theme. Risk colours appear only on result marks. */
:root {
  color-scheme: dark;
  --bg: #061317;
  --raise: #0b1e24;
  --line: rgb(234 241 239 / 0.09);
  --line-strong: rgb(234 241 239 / 0.16);
  --text: #eaf1ef;
  --muted: #8fa3a2;
  --faint: #7d9392;
  --teal: #48b89b;
  --teal-hover: #5ccaad;
  --teal-ink: #04231b;
  --teal-deep: #1b7c62;
  --low: #48b89b;
  --mod: #e3b544;
  --high: #ee8a4a;
  --crit: #ef5a5f;

  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #1d363c var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(64rem 34rem at 50% -12rem, rgb(72 184 155 / 0.24), transparent 70%) no-repeat,
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  caret-color: var(--teal);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}

::selection {
  background: rgb(72 184 155 / 0.35);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* ---------- Header ---------- */
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-block: max(1.25rem, env(safe-area-inset-top, 0px)) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: block;
  line-height: 0;
  border-radius: 8px;
}

.mark img {
  width: 1.875rem;
  height: 1.875rem;
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.8125rem;
  text-decoration: none;
}

.byline img {
  height: 1rem;
  width: auto;
}

.byline:hover span {
  color: var(--muted);
}

main {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 46rem;
  margin: 0 auto;
  padding-block: clamp(3rem, 11vh, 7rem) 0;
  text-align: center;
}

h1 {
  margin: 0 0 1.25rem;
  font-weight: 300;
  font-size: clamp(3.25rem, 12vw, 6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lede {
  margin: 0 auto 2.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.check {
  text-align: left;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 3.75rem;
  padding: 0.375rem;
  border-radius: 999px;
  background: var(--raise);
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), outline-color 0.25s var(--ease);
}

.field:focus-within {
  border-color: var(--teal);
  outline: 2px solid rgb(72 184 155 / 0.35);
  outline-offset: 3px;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.5rem 0 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
}

.field input:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

button,
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: progress;
}

button svg,
.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.paste {
  height: 2.5rem;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.paste:hover {
  background: rgb(234 241 239 / 0.06);
  color: var(--text);
}

.field.has-value .paste,
.field.busy .paste {
  display: none;
}

.go {
  height: 100%;
  padding: 0 1.15rem 0 1.35rem;
  background: var(--teal);
  color: var(--teal-ink);
  font-size: 1rem;
}

.go:hover {
  background: var(--teal-hover);
}

.go:disabled {
  background: var(--teal-deep);
  color: #fff;
}

.go:disabled svg {
  display: none;
}

.note {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--text);
  font-size: 0.9375rem;
}

.error {
  margin: 0.9rem 0 0;
  text-align: center;
  color: #f7bcb6;
  font-size: 0.9375rem;
}

/* Checking: the four areas, each with its light. */
.progress {
  margin-top: 1.1rem;
  text-align: center;
}

.progress ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.progress li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.3s;
}

.progress .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 1px solid var(--muted);
}

/* While the request is in flight: one hairline runs under the four areas. */
.progress ol {
  position: relative;
  padding-bottom: 0.9rem;
}

.progress ol::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(18rem, 80%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--teal), transparent) no-repeat;
  background-size: 35% 100%;
  animation: run 1.6s var(--ease) infinite;
}

.progress.done ol::after {
  animation: none;
  opacity: 0;
}

@keyframes run {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

.progress li.settled {
  color: var(--text);
}

.progress li.settled .dot {
  border-color: var(--lv, var(--muted));
  background: var(--lv, var(--muted));
}

.progress p {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.elapsed {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}

.check-extra {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.pix {
  width: 100%;
}

.pix summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.pix summary:hover {
  color: var(--text);
}

.pix summary svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}

.pix[open] summary svg {
  transform: rotate(45deg);
}

.pix-body {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.pix-body label {
  font-size: 0.8125rem;
  color: var(--muted);
}

textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--raise);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  word-break: break-all;
}

textarea:focus {
  outline: 2px solid rgb(72 184 155 / 0.35);
  outline-offset: 2px;
  border-color: var(--teal);
}

.hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--faint);
}

.free {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ---------- Scale: a hairline from 0 to 100 ---------- */
.scale {
  max-width: 34rem;
  margin: 3.25rem auto 0;
  text-align: left;
}

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  height: 3px;
}

.seg {
  border-radius: 3px;
  opacity: 0.55;
}

.s1 { background: var(--low); }
.s2 { background: var(--mod); }
.s3 { background: var(--high); }
.s4 { background: var(--crit); }

.marker {
  --score: 0;
  position: absolute;
  top: 50%;
  left: calc(var(--score) * 1%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--lv, var(--bg));
  border: 1.5px solid var(--lv, var(--muted));
  box-shadow: 0 0 0 4px var(--bg);
  translate: -50% -50%;
}

.scale-labels {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.35;
}

.scale-labels .range {
  display: block;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ---------- Result ---------- */

.lv-baixo { --lv: var(--low); }
.lv-moderado { --lv: var(--mod); }
.lv-alto { --lv: var(--high); }
.lv-critico { --lv: var(--crit); }
.lv-none { --lv: var(--faint); }

.scale {
  scroll-margin-top: 1.25rem;
}

.result {
  max-width: 64rem;
  margin: 2.75rem auto 0;
  display: grid;
  gap: 3rem;
}

.verdict,
.evidence {
  min-width: 0;
}

.host {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.score {
  margin: 0.25rem 0 0;
  font-weight: 200;
  font-size: clamp(6rem, 26vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.score .of {
  margin-left: 0.12em;
  font-size: 0.22em;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--faint);
}

#veredito {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--lv);
}

.level-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--lv);
  flex: 0 0 auto;
}

.level-dot.crit {
  --lv: var(--crit);
}

.advice {
  margin: 0.9rem 0 0;
  max-width: 32ch;
  font-size: 1.1875rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.pix-ask {
  margin: 0.9rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.link-button {
  display: inline;
  padding: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  font-weight: 500;
  text-align: left;
  white-space: normal;
  text-decoration: underline;
  text-decoration-color: rgb(72 184 155 / 0.4);
  text-underline-offset: 0.22em;
}

.link-button:hover {
  text-decoration-color: currentColor;
}

.link-button:active {
  transform: none;
}

.next {
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.next p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.btn {
  height: 3.25rem;
  padding: 0 1.4rem;
  font-size: 1rem;
}

.btn.primary {
  background: var(--teal);
  color: var(--teal-ink);
}

.btn.primary:hover {
  background: var(--teal-hover);
}

.btn.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn.quiet:hover {
  border-color: var(--teal);
}

.btn.large {
  height: 3.75rem;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
}

.evidence {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.block h3 {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reasons li {
  position: relative;
  padding-left: 1.25rem;
  color: #cfdcda;
  overflow-wrap: anywhere;
}

.reasons li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.68em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lv, var(--muted));
}

.facts {
  display: grid;
  gap: 2.5rem;
}

dl {
  margin: 0;
}

dt {
  font-size: 0.8125rem;
  color: var(--faint);
}

dd {
  margin: 0.1rem 0 0.8rem;
  overflow-wrap: anywhere;
}

.categories {
  border-top: 1px solid var(--line);
}

.category {
  border-bottom: 1px solid var(--line);
}

.category summary {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0;
  cursor: pointer;
  list-style: none;
}

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

.category .level-dot {
  width: 0.55rem;
  height: 0.55rem;
}

.category-risk {
  font-size: 0.875rem;
  color: var(--lv);
}

.category summary svg {
  width: 1rem;
  height: 1rem;
  color: var(--faint);
  transition: transform 0.3s var(--ease);
}

.category[open] summary svg {
  transform: rotate(45deg);
}

.signals {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 1rem;
  font-size: 0.9375rem;
}

.signal-risk {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.signal-evidence {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.signal.off {
  color: var(--faint);
}

.r0 { color: var(--faint); }
.r1 { color: var(--low); }
.r2 { color: var(--mod); }
.r3 { color: var(--high); }
.r4 { color: var(--crit); }

.coverage {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--faint);
}

.disclaimer {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ---------- Sections ---------- */
.looks,
.exposed,
.faq {
  margin-top: clamp(5rem, 13vw, 8.5rem);
}

.looks h2,
.exposed h2,
.faq h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.look-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.look {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.look h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.look h3::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 1px solid var(--teal);
  flex: 0 0 auto;
}

.look p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.look-pay {
  display: grid;
  gap: 1.75rem;
}

.look-pay > div > p {
  color: #cfdcda;
}

.pix-demo {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: var(--raise);
  border: 1px solid var(--line-strong);
  max-width: 24rem;
}

.pix-demo figcaption {
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 0.85rem;
}

.pix-demo dl {
  display: grid;
  gap: 0.75rem;
}

.pix-demo dd {
  margin: 0.1rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.pix-demo .mismatch {
  color: var(--crit);
}

.demo-verdict {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

/* ExposedIn hand-off */
.exposed {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: rgb(27 124 98 / 0.14);
  border: 1px solid rgb(72 184 155 / 0.22);
  display: grid;
  gap: 2rem;
  align-items: center;
}

.exposed-logo {
  height: 1.2rem;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
}

.exposed p {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--muted);
}

.exposed .btn {
  justify-self: start;
}

/* FAQ */
.faq {
  max-width: 48rem;
}

.faq h2 {
  margin-bottom: 1.75rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 500;
}

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

.faq summary svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Footer ---------- */
.foot {
  max-width: var(--wrap);
  margin: clamp(5rem, 12vw, 7rem) auto 0;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

.foot p {
  margin: 0;
  max-width: 78ch;
}

/* reCAPTCHA badge hidden: the line under the field carries Google's terms. */
.grecaptcha-badge {
  visibility: hidden;
}

/* ---------- Narrow phones ---------- */
@media (max-width: 24rem) {
  .field {
    flex-wrap: wrap;
    height: auto;
    border-radius: 24px;
  }

  .field input {
    flex: 1 1 60%;
    height: 3rem;
  }

  .go {
    flex: 1 0 100%;
    height: 3.25rem;
  }
}

/* ---------- Tablet ---------- */
@media (min-width: 40rem) {
  .field {
    height: 4.125rem;
  }

  .go {
    padding: 0 1.3rem 0 1.6rem;
    font-size: 1.0625rem;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .look-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .look-pay {
    grid-column: 1 / -1;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 64rem) {
  body {
    padding-left: max(2.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.5rem, env(safe-area-inset-right, 0px));
  }

  .result {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 5rem;
    align-items: start;
  }

  .verdict {
    position: sticky;
    top: 2rem;
  }

  .look-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3rem;
  }

  .look-pay {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3rem;
    align-items: center;
  }

  .look-pay > div {
    grid-column: span 2;
  }

  .look-pay .pix-demo {
    max-width: none;
  }

  .look-pay > div > p {
    font-size: 1.125rem;
  }

  .exposed {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }

  .exposed .btn {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress ol::after {
    animation: none;
    background-position: 50% 0;
  }
}
