:root {
  /* Marca: azul de projeto (cianotipia). Azul = ação e identidade. */
  --navy-950: #07142b;
  --navy-900: #0b1b3a;
  --navy-800: #112b5c;
  --blue: #1d5cf0;
  --blue-dark: #1548c2;
  --blue-300: #8fb0ff;
  --blue-100: #e3ecff;
  --blue-50: #f2f6fd;

  /* Texto e superfícies */
  --ink: #0b1b3a;
  --text: #2b3b57;
  --muted: #5a6a86;
  --line: #d8e0ee;
  --white: #ffffff;

  /* Semáforo: verde, âmbar e vermelho só aparecem como status. */
  --ok: #15803d;
  --ok-lamp: #22c55e;
  --ok-soft: #e6f6ec;
  --warn: #f5b301;
  --warn-ink: #7a5200;
  --warn-soft: #fff6d6;
  --bad: #d92d20;
  --bad-ink: #b42318;
  --bad-soft: #ffeceb;

  --focus: #3b73ff;
  --max: 1160px;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-dark);
}

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

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.8rem;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1.6rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-300);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--blue);
}

.lead {
  max-width: 36rem;
  margin: 0 0 1rem;
  color: #d3e0fa;
  font-size: 1.16rem;
  line-height: 1.62;
}

.lead strong {
  color: #fff;
}

.lead.dark {
  color: var(--text);
}

.micro {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #a9bce0;
}

.micro.dark {
  margin: 0;
  color: var(--muted);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  white-space: nowrap;
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.93rem;
}

.btn-lg {
  min-height: 3.3rem;
  padding-inline: 1.6rem;
  font-size: 1.04rem;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.site-header .btn,
.hero .btn:not(.ghost) {
  background: #fff;
  border-color: #fff;
  color: var(--navy-900);
}

.site-header .btn:hover,
.hero .btn:not(.ghost):hover {
  background: var(--blue-100);
  border-color: var(--blue-100);
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 20, 43, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(143, 176, 255, 0.14);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}

.nav a {
  color: #c4d4f5;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: #fff;
}

.nav .nav-phbit {
  padding-left: 1.7rem;
  border-left: 1px solid rgba(143, 176, 255, 0.25);
  color: #8ea4cf;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  color: #fff;
  background:
    radial-gradient(55% 60% at 82% 35%, rgba(29, 92, 240, 0.38), transparent 70%),
    var(--navy-900);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -60px 0 0 -60px;
  z-index: -2;
  background-image:
    linear-gradient(rgba(143, 176, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(90% 90% at 60% 40%, #000 20%, transparent 85%);
  mask-image: radial-gradient(90% 90% at 60% 40%, #000 20%, transparent 85%);
  animation: grid-drift 70s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/drafting.svg") no-repeat 112% -6% / min(900px, 95vw) auto;
  pointer-events: none;
}

@keyframes grid-drift {
  to {
    transform: translate(60px, 60px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.4rem;
  color: #fff;
  font-size: clamp(2.7rem, 5.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead-2 {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Prancheta com semáforo */
.board {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 90px -20px rgba(0, 8, 30, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.legend {
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}

.legend-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.sig {
  --c: var(--ok-lamp);
  --c-ink: var(--ok);
  --c-soft: var(--ok-soft);
  --d: 0.6s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.8rem 0.85rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sig.warn {
  --c: var(--warn);
  --c-ink: var(--warn-ink);
  --c-soft: var(--warn-soft);
  --d: 1s;
}

.sig.bad {
  --c: var(--bad);
  --c-ink: var(--bad-ink);
  --c-soft: var(--bad-soft);
  --d: 1.4s;
}

.sig:hover {
  border-color: var(--c);
}

.sig[aria-pressed="true"] {
  border-color: var(--c);
  background: var(--c-soft);
  box-shadow: 0 0 0 3px var(--c-soft), 0 6px 18px -8px var(--c);
}

.lamp {
  width: 18px;
  height: 18px;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px var(--c-soft), 0 0 16px var(--c);
}

.js .lamp {
  background: #cbd5e5;
  box-shadow: 0 0 0 4px #eef2f9;
  transition: background 0.5s var(--d), box-shadow 0.5s var(--d);
}

.js .live .lamp {
  background: var(--c);
  box-shadow: 0 0 0 4px var(--c-soft), 0 0 16px var(--c);
}

.sig-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}

.sig-desc {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 1.25rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.board-head time {
  font-variant-numeric: tabular-nums;
}

.rows {
  margin: 0;
  padding: 0 0.75rem;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  border-radius: 12px;
  background: var(--blue-50);
  box-shadow: inset 4px 0 0 var(--bar, var(--ok-lamp));
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
}

.row[data-status="warn"] {
  --bar: var(--warn);
  background: #fffaea;
}

.row[data-status="bad"] {
  --bar: var(--bad);
  background: #fff4f2;
}

.row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.row .note {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tag.ok {
  background: var(--ok);
  color: #fff;
}

.tag.warn {
  background: var(--warn);
  color: #3a2a00;
}

.tag.bad {
  background: var(--bad);
  color: #fff;
}

.board[data-filter="ok"] .row:not([data-status="ok"]),
.board[data-filter="warn"] .row:not([data-status="warn"]),
.board[data-filter="bad"] .row:not([data-status="bad"]) {
  opacity: 0.28;
}

.board-foot {
  margin: 0.4rem 0 0;
  padding: 0.7rem 1.25rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Seções */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.sec-questions {
  background: #fff;
}

.sec-coverage {
  background: var(--blue-50);
}

.sec-steps {
  background: #fff;
}

.sec-law {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #c9d7f2;
}

.sec-not {
  background: var(--blue-50);
}

.sec-ask {
  background: #fff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.7rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blue-50);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--blue-300);
}

.card .icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
}

.card p {
  margin: 0;
}

/* Cobertura */
.sec-coverage .lead {
  margin-bottom: 2.2rem;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.stage-head.next {
  margin-top: 2.8rem;
}

.stage-head .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.stage-head.now .dot {
  background: var(--ok-lamp);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.stage-head.next .dot {
  border: 2px dashed #7f90b0;
}

.card-now {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: #fff;
}

.card-now h3 {
  margin-bottom: 0.4rem;
}

.ico {
  flex: none;
  width: 50px;
  height: 50px;
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-100);
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-list li {
  padding: 1.05rem 0 1.2rem;
  border-top: 1.5px dashed #aebcd8;
}

.next-list h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}

.next-list p {
  margin: 0;
  color: var(--muted);
}

/* Fluxo */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: calc((100% - 3rem) / 3 - 22px);
  height: 2px;
  border-radius: 2px;
}

.steps::before {
  background: var(--line);
}

.steps::after {
  background: var(--blue);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.5, 0, 0.2, 1);
}

.js .steps::after {
  transform: scaleX(0);
}

.js .steps.in::after {
  transform: scaleX(1);
}

.step {
  position: relative;
  z-index: 1;
  padding-right: 0.5rem;
}

.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px #fff;
}

.step p {
  margin: 0;
}

/* Lei */
.sec-law::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(143, 176, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 90%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 90%);
}

.sec-law h2 {
  color: #fff;
}

.law-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.law-intro p {
  max-width: 30rem;
  margin: 0;
  font-size: 1.12rem;
}

.law-intro strong,
.law-note strong {
  color: #fff;
}

.law-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.law-list li {
  padding: 1.1rem 1.3rem 1.2rem;
  border: 1px solid rgba(143, 176, 255, 0.2);
  border-radius: 14px;
  background: rgba(143, 176, 255, 0.07);
}

.law-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.law-list span {
  color: #b9c9e8;
}

.law-note {
  max-width: 62rem;
  margin: 2.2rem 0 0;
  padding: 1.3rem 1.6rem;
  border-left: 3px solid var(--blue-300);
  border-radius: 0 14px 14px 0;
  background: rgba(143, 176, 255, 0.1);
  color: #d3e0fa;
}

/* Foco */
.not-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.not-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid #cdd8ec;
}

.not-list li:first-child {
  padding-top: 0;
}

.not-list li:last-child {
  border-bottom: 0;
}

.not-list strong {
  display: block;
  margin-bottom: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.x {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--bad-soft);
}

.x::before,
.x::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 8px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--bad);
  transform: rotate(45deg);
}

.x::after {
  transform: rotate(-45deg);
}

/* Formulário */
.ask-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.ask-copy {
  position: sticky;
  top: 6rem;
}

.ask-copy .icon {
  display: block;
  margin-bottom: 1rem;
}

.poll {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--blue-50);
}

.poll fieldset {
  min-width: 0;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

.poll legend {
  display: block;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.q {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.hint {
  display: block;
  margin: 0.25rem 0 0 2.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.opt {
  position: relative;
  cursor: pointer;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt span {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.3;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.opt span::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-right: 0.6rem;
  border: 1.5px solid #9aa9c6;
  border-radius: 50%;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.opt input[type="checkbox"] + span::before {
  border-radius: 5px;
}

.opt:hover span {
  border-color: var(--blue-300);
}

.opt input:checked + span {
  border-color: var(--blue);
  background: var(--blue-100);
  color: var(--ink);
  font-weight: 500;
}

.opt input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--blue-100);
}

.opt input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.fields label {
  display: block;
  margin-bottom: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.fields label > span {
  display: block;
  margin-bottom: 0.4rem;
}

.fields em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.fields input,
.fields textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s;
}

.fields input:focus,
.fields textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(59, 115, 255, 0.25);
  outline-offset: 0;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 0.4rem;
}

/* Rodapé */
.site-footer {
  padding: 2.6rem 0 3rem;
  background: var(--navy-950);
  color: #94a8cf;
  font-size: 0.92rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

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

.site-footer a {
  color: #dbe6ff;
}

.site-footer .brand {
  color: #fff;
}

.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.site-footer .ig {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 0.4rem;
  padding-left: 1.15rem;
  border-left: 1px solid rgba(148, 168, 207, 0.35);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: #94a8cf;
}

.site-footer .ig:hover {
  color: #fff;
}

.ig-icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  display: block;
}

/* Movimento: uma sequência de abertura no hero e revelações leves */
.js .hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .live .hero-copy > * {
  opacity: 1;
  transform: none;
}

.js .live .hero-copy > :nth-child(2) { transition-delay: 0.08s; }
.js .live .hero-copy > :nth-child(3) { transition-delay: 0.16s; }
.js .live .hero-copy > :nth-child(4) { transition-delay: 0.24s; }
.js .live .hero-copy > :nth-child(5) { transition-delay: 0.32s; }
.js .live .hero-copy > :nth-child(6) { transition-delay: 0.4s; }

.js .board {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s 0.2s ease, transform 0.8s 0.2s ease;
}

.js .board.live {
  opacity: 1;
  transform: none;
}

.js .row .tag {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.js .live .row .tag {
  opacity: 1;
  transform: none;
  transition-delay: calc(1.5s + var(--i, 0) * 0.14s);
}

.row:nth-child(1) { --i: 0; }
.row:nth-child(2) { --i: 1; }
.row:nth-child(3) { --i: 2; }
.row:nth-child(4) { --i: 3; }

.tag.bad::before {
  animation: pulse 2.6s ease-out 3.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}

.js [data-reveal] > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].in > * {
  opacity: 1;
  transform: none;
}

/* Responsivo */
@media (max-width: 1020px) {
  .nav a:not(.nav-phbit) {
    display: none;
  }

  .nav .nav-phbit {
    padding-left: 0;
    border-left: 0;
  }

  .hero-grid,
  .law-grid,
  .not-grid,
  .ask-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
  }

  .ask-copy {
    position: static;
  }

  .next-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .bar {
    justify-content: space-between;
  }

  .grid-3,
  .grid-2,
  .next-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .steps::before,
  .steps::after {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps::after {
    transform-origin: top;
  }

  .js .steps::after {
    transform: scaleY(0);
  }

  .js .steps.in::after {
    transform: scaleY(1);
  }

  .step {
    padding-left: 4rem;
  }

  .num {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

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

  .sig {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.75rem;
  }

  .sig .lamp {
    grid-row: span 2;
    margin: 0;
  }

  .btn-sm {
    padding-inline: 1rem;
  }

  .hide-sm {
    display: none;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tag {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .hero-copy > *,
  .js .board,
  .js .row .tag,
  .js [data-reveal] > * {
    opacity: 1;
    transform: none;
  }

  .js .steps::after {
    transform: none;
  }
}
