:root {
  --bg: #f4f7f6;
  --card: #ffffff;
  --text: #10231f;
  --muted: #64706d;
  --primary: #0f6b54;
  --primary-dark: #0b4f40;
  --border: #d9e3df;
  --danger: #9c1c1c;
  --success: #0b6b3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #e9f3ef, var(--bg));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}
.topbar span { color: var(--muted); margin-left: 8px; }
.topbar nav { display: flex; gap: 18px; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
.container { max-width: 1120px; margin: 32px auto; padding: 0 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(16, 35, 31, .08);
}
.hero { margin-bottom: 24px; }
.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
h1 { margin: 4px 0 8px; font-size: 34px; }
h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 700; }
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}
.checkbox { grid-template-columns: 20px 1fr; align-items: center; font-weight: 600; }
.checkbox input { width: auto; }
button, .button {
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
button:hover, .button:hover { background: var(--primary-dark); }
.secondary { margin-top: 8px; }
.alert { padding: 14px; border-radius: 14px; margin-bottom: 16px; }
.alert.error { background: #fff1f1; color: var(--danger); border: 1px solid #ffd0d0; }
.alert.success { background: #eefbf3; color: var(--success); border: 1px solid #ccefd9; }
.muted { color: var(--muted); }
pre { white-space: pre-wrap; background: #f6f8f7; padding: 16px; border-radius: 14px; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.success { background: #eefbf3; color: var(--success); }
.badge.error { background: #fff1f1; color: var(--danger); }
.badge.processing { background: #fff8e6; color: #8a6500; }
@media (max-width: 800px) {
  .topbar, .topbar nav { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-menu {
  height: 38px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.linha-digitavel-box {
  margin: 18px 0 16px;
}

.linha-digitavel-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f2f27;
}

.linha-digitavel-copy {
  display: flex;
  gap: 10px;
  align-items: center;
}

.linha-digitavel-copy input {
  flex: 1;
  height: 44px;
  border: 1px solid #cfe1dc;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  background: #f8fffc;
  color: #0f2f27;
}

.linha-digitavel-copy button {
  height: 44px;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  background: #0f7a5a;
  color: #fff;
  white-space: nowrap;
}

.linha-digitavel-copy button:hover {
  filter: brightness(0.95);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid #dce7e3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 800;
  color: #10231d;
}

.brand-text span {
  font-size: 16px;
  color: #6b7571;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 70px;
  background: #ffffff;
  border-bottom: 1px solid #dce7e3;
  min-height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 150px;
  height: 95px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 800;
  color: #10231d;
}

.brand-text span {
  font-size: 18px;
  color: #68736f;
}

button,
.button,
.button.secondary,
.linha-digitavel-copy button {
  width: auto;
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.footer {
  width: 100%;
  padding: 18px 20px;
  text-align: center;
  font-size: 14px;
  color: #5f6f69;
  background: #ffffff;
  border-top: 1px solid #dce7e3;
  margin-top: 40px;
}

.footer strong {
  color: #0f7a5a;
  font-weight: 800;
}
.footer-link {
  color: #0f7a5a;
  font-weight: 800;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}