/* Layout: prancha técnica — hero em painel escuro com quadrícula e cotas sobre o quadro de projetos;
   seções em coluna larga, rodapé no formato do selo de uma prancha. Paleta e fontes da identidade Traeva. */
:root {
  --bg: #f8f6f3; /* Cal 50 */
  --surface: #ffffff;
  --sunken: #efeae5;
  --fg: #1c1917; /* Grafite 950 */
  --fg-muted: #5a524d;
  --line: #e3dcd5;
  --line-strong: #d8d0c8;
  --accent: #b4532f; /* Terracota 600 */
  --accent-hover: #96432a; /* Terracota 700 */
  --on-accent: #ffffff;
  --accent-subtle: #f6e3d9;
  --accent-subtle-fg: #96432a;
  --ardosia: #5d7a92;
  --ardosia-subtle: #e1e8ee;
  --ardosia-subtle-fg: #3f5a70;
  --salvia: #6e8b68;
  --salvia-subtle: #e3ebe1;
  --salvia-subtle-fg: #4a6545;
  --danger: #b3261e;
  /* Painel escuro das telas públicas: igual nos dois temas */
  --panel: #1c1917;
  --panel-grid: #26211f;
  --panel-line: #3a332f;
  --panel-fg: #f1ece7;
  --panel-muted: #a39a93;
  --panel-accent: #d9835f;
  --panel-accent-hover: #e6a487;
  --panel-tag: #3e2a22;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius-md: 4px;
  --radius-lg: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1917;
    --surface: #2e2926;
    --sunken: #231f1d;
    --fg: #f1ece7;
    --fg-muted: #a39a93;
    --line: #3d3733;
    --line-strong: #4a433f;
    --accent: #d9835f;
    --accent-hover: #e6a487;
    --on-accent: #1c1917;
    --accent-subtle: #3e2a22;
    --accent-subtle-fg: #e6a487;
    --ardosia: #8fa9bd;
    --ardosia-subtle: #26313a;
    --ardosia-subtle-fg: #a9bfd0;
    --salvia: #94b08e;
    --salvia-subtle: #29332a;
    --salvia-subtle-fg: #afc6a9;
    --danger: #f2867c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1917;
  --surface: #2e2926;
  --sunken: #231f1d;
  --fg: #f1ece7;
  --fg-muted: #a39a93;
  --line: #3d3733;
  --line-strong: #4a433f;
  --accent: #d9835f;
  --accent-hover: #e6a487;
  --on-accent: #1c1917;
  --accent-subtle: #3e2a22;
  --accent-subtle-fg: #e6a487;
  --ardosia: #8fa9bd;
  --ardosia-subtle: #26313a;
  --ardosia-subtle-fg: #a9bfd0;
  --salvia: #94b08e;
  --salvia-subtle: #29332a;
  --salvia-subtle-fg: #afc6a9;
  --danger: #f2867c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede {
  color: var(--fg-muted);
  font-size: var(--step-1);
  max-width: 60ch;
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}
.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1.375rem;
  line-height: 1;
}
.tag-beta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent-subtle-fg);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: 500 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn-ghost-dark {
  color: var(--panel-fg);
  border-color: var(--panel-line);
  background: transparent;
}
.btn-ghost-dark:hover {
  border-color: var(--panel-muted);
  color: var(--panel-fg);
}

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--panel);
  color: var(--panel-fg);
  border-bottom: 1px solid var(--panel-line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.topbar nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar a.topbar-login {
  color: var(--panel-muted);
  text-decoration: none;
  font-size: 0.875rem;
}
.topbar a.topbar-login:hover {
  color: var(--panel-fg);
}
.topbar nav a {
  color: var(--panel-muted);
  text-decoration: none;
  font-size: 0.875rem;
}
.topbar nav a:hover {
  color: var(--panel-fg);
}
.topbar .tag-beta {
  background: var(--panel-tag);
  color: var(--panel-accent-hover);
}
.topbar .btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.875rem;
  background: var(--panel-accent);
  color: var(--panel);
}
.topbar .btn:hover {
  background: var(--panel-accent-hover);
  color: var(--panel);
}
@media (max-width: 860px) {
  .topbar nav {
    display: none;
  }
  .topbar-actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .topbar a.topbar-login {
    display: none;
  }
}
@media (max-width: 480px) {
  .topbar .wrap {
    gap: 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--panel);
  color: var(--panel-fg);
  background-image:
    linear-gradient(var(--panel-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--panel-line);
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero .eyebrow {
  color: var(--panel-accent);
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--panel-accent);
}
.hero .lede {
  color: var(--panel-muted);
  margin-top: 20px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--panel-line);
  color: var(--panel-muted);
  font-size: var(--step--1);
}
.hero-specs b {
  color: var(--panel-fg);
  font-weight: 500;
}

/* Cotas: linhas de dimensão de desenho técnico */
.drawing {
  position: relative;
  padding: 40px 0 0 40px;
  min-width: 0;
}
.dim {
  position: absolute;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.dim-h {
  top: 8px;
  left: 40px;
  right: 0;
  height: 16px;
  border-bottom: 1px solid var(--panel-line);
}
.dim-h::before,
.dim-h::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 1px;
  height: 12px;
  background: var(--panel-muted);
  transform: rotate(45deg);
}
.dim-h::before {
  left: 0;
}
.dim-h::after {
  right: 0;
}
.dim-h span {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  background: var(--panel);
  padding: 0 8px;
  white-space: nowrap;
}
.dim-v {
  top: 40px;
  bottom: 0;
  left: 8px;
  width: 16px;
  border-right: 1px solid var(--panel-line);
}
.dim-v::before,
.dim-v::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 12px;
  height: 1px;
  background: var(--panel-muted);
  transform: rotate(45deg);
}
.dim-v::before {
  top: 0;
}
.dim-v::after {
  bottom: 0;
}
.dim-v span {
  position: absolute;
  top: 50%;
  right: 0;
  writing-mode: vertical-rl;
  transform: translate(50%, -50%) rotate(180deg);
  background: var(--panel);
  padding: 8px 0;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .drawing {
    padding-left: 0;
  }
  .dim-v {
    display: none;
  }
  .dim-h {
    left: 0;
  }
}

/* Janela do app com o quadro geral */
.app-window {
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-bar .crumb {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.app-bar strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}
.app-bar .office {
  margin-left: auto;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 8px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.filters {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  flex-wrap: wrap;
}
.chip {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-muted);
}
.chip.on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.board-scroll {
  overflow-x: auto;
  padding: 12px 16px 16px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  min-width: 640px;
}
.col {
  background: var(--sunken);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 4px;
}
.col-head .mono {
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 0.6875rem;
}
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  line-height: 1.35;
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.pcard-code {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--fg-muted);
}
.disc {
  font-size: 0.625rem;
  padding: 1px 6px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.disc-arq {
  background: var(--accent-subtle);
  color: var(--accent-subtle-fg);
}
.disc-est {
  background: var(--ardosia-subtle);
  color: var(--ardosia-subtle-fg);
}
.disc-ins {
  background: var(--salvia-subtle);
  color: var(--salvia-subtle-fg);
}
.pcard-title {
  font-weight: 600;
  font-size: 0.78rem;
}
.pcard-client {
  color: var(--fg-muted);
}
.pcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.pcard-due {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--fg-muted);
}
.pcard-due.late {
  color: var(--danger);
}
.d1 {
  animation-delay: 0.05s;
}
.d2 {
  animation-delay: 0.12s;
}
.d3 {
  animation-delay: 0.19s;
}
.d4 {
  animation-delay: 0.26s;
}
.d5 {
  animation-delay: 0.33s;
}
.d6 {
  animation-delay: 0.4s;
}
.d7 {
  animation-delay: 0.47s;
}
.d8 {
  animation-delay: 0.54s;
}
.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.5625rem;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent-subtle-fg);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Seções ---------- */
section.block {
  padding-block: clamp(64px, 9vw, 112px);
}
section.block + section.block {
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Para quem */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.role {
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.role + .role {
  border-left: 1px solid var(--line);
}
.role .mono {
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.role h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.role p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
@media (max-width: 860px) {
  .roles {
    grid-template-columns: minmax(0, 1fr);
  }
  .role + .role {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.org-tree {
  margin-top: 28px;
  font-size: var(--step--1);
  color: var(--fg-muted);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}
.org-tree b {
  color: var(--fg);
  font-weight: 500;
}

/* Módulos */
.modules {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.module {
  grid-column: span 2;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.module.wide {
  grid-column: span 3;
}
.module h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.module p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.module .spec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  border-top: 1px dashed var(--line-strong);
  padding-top: 10px;
  margin-top: 4px;
}
.module .label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 980px) {
  .module,
  .module.wide {
    grid-column: span 3;
  }
}
@media (max-width: 640px) {
  .modules {
    grid-template-columns: minmax(0, 1fr);
  }
  .module,
  .module.wide {
    grid-column: auto;
  }
}
.phase-strip {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.phase-strip span {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: var(--radius-md);
  background: var(--sunken);
  color: var(--fg-muted);
}
.phase-strip span.now {
  background: var(--accent-subtle);
  color: var(--accent-subtle-fg);
  font-weight: 600;
}
.spt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.spt-list {
  display: grid;
  gap: 6px;
}
.spt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--sunken);
  min-width: 0;
}
.spt-row b {
  color: var(--fg);
  font-weight: 500;
}
.spt-row .n {
  color: var(--accent-subtle-fg);
  font-weight: 500;
}
.module .example-box {
  display: grid;
  gap: 8px;
}
.file-list {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--sunken);
  min-width: 0;
}
.file-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row span:last-child {
  color: var(--fg-muted);
  flex: none;
}

/* Financeiro */
.fin {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px) {
  .fin {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fin-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.fin-points li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  color: var(--fg-muted);
}
.fin-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.fin-points b {
  color: var(--fg);
  font-weight: 600;
}
.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.modes span {
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
}
.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ledger-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: baseline;
}
.ledger-head h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.ledger-head .mono {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.example {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-md);
  background: var(--sunken);
  color: var(--fg-muted);
}
.ledger-body {
  padding: 8px 24px 20px;
  display: grid;
}
.metric {
  display: grid;
  gap: 8px;
  padding-block: 16px;
}
.metric + .metric {
  border-top: 1px solid var(--line);
}
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.metric-row .name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.metric-row .vals {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.metric-row .vals b {
  color: var(--fg);
  font-weight: 500;
}
.bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--sunken);
  overflow: hidden;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}
.bar .rec {
  background: var(--salvia);
}
.bar .cus {
  background: var(--accent);
}
.bar .hrs {
  background: var(--ardosia);
}
.bar .w60 {
  width: 60%;
}
.bar .w66 {
  width: 66.1%;
}
.bar .w79 {
  width: 79.2%;
}
.metric-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}
.margins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--sunken);
}
.margins div {
  padding: 16px 24px;
  display: grid;
  gap: 2px;
}
.margins div + div {
  border-left: 1px solid var(--line);
}
.margins .k {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.margins .v {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.margins .v small {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-weight: 400;
}
.fin-foot {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 16px;
}

/* Como começa */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 20px;
  border-top: 2px solid var(--fg);
  min-width: 0;
}
.steps .n {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
}
.steps h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.steps p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* Segurança */
.sec {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 980px) {
  .sec {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) {
  .sec-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sec-list li {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sec-list h3 {
  font-size: 1rem;
  font-weight: 600;
}
.sec-list p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.mask-demo {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}
.mask-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.mask-row .k {
  color: var(--fg-muted);
}
.mask-row .v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.mask-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
}
.mask-actions small {
  color: var(--fg-muted);
  font-size: 0.75rem;
}
.btn-small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
}
.btn-small:hover {
  border-color: var(--fg-muted);
}
.audit-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-subtle-fg);
  background: var(--accent-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
}

/* Beta */
.beta {
  background: var(--panel);
  color: var(--panel-fg);
}
.beta .eyebrow {
  color: var(--panel-accent);
}
.beta .lede {
  color: var(--panel-muted);
  margin-top: 16px;
}
.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px) {
  .beta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.beta h2 {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.beta-perks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--panel-muted);
}
.beta-perks li {
  display: flex;
  gap: 10px;
}
.beta-perks li::before {
  content: "—";
  color: var(--panel-accent);
}
.form-card {
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  font-size: 0.8125rem;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  font: 400 0.9375rem var(--font-body);
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field .err {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1em;
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  cursor: pointer;
}
.checks input {
  accent-color: var(--accent);
}
.form-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.form-error {
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.875rem;
}
.form-error:empty {
  display: none;
}
.form-error + .form-foot {
  margin-top: 12px;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot small {
  color: var(--fg-muted);
  font-size: 0.75rem;
  max-width: 42ch;
}
.thanks {
  display: grid;
  gap: 10px;
  padding: 8px 0;
}
.thanks h3 {
  font-size: var(--step-2);
  font-weight: 600;
}
.thanks h3:focus {
  outline: none;
}
.thanks p {
  color: var(--fg-muted);
}

/* Perguntas */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  color: var(--fg-muted);
  padding-bottom: 20px;
  max-width: 68ch;
}

/* Rodapé: selo de prancha */
footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}
.stamp {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border: 1.5px solid var(--fg);
  font-size: 0.8125rem;
  background: var(--surface);
}
.stamp > div {
  padding: 12px 16px;
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  border-left: 1px solid var(--fg);
}
.stamp > div:first-child {
  border-left: 0;
  grid-row: span 2;
}
.stamp > div.r2 {
  border-top: 1px solid var(--fg);
}
.stamp .k {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.stamp .v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.stamp .brand {
  margin-top: 4px;
}
.stamp .brand svg {
  width: 22px;
  height: 22px;
}
.stamp .wordmark {
  font-size: 1.125rem;
}
.stamp .brand-desc {
  color: var(--fg-muted);
  font-size: 0.8125rem;
}
@media (max-width: 760px) {
  .stamp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stamp > div:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stamp > div {
    border-left: 0;
    border-top: 1px solid var(--fg);
  }
  .stamp > div:first-child {
    border-top: 0;
  }
  .stamp > div:nth-child(odd):not(:first-child) {
    border-left: 1px solid var(--fg);
  }
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pcard {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
