:root {
  --accent-600: #ff7a00;
  --accent-500: #ff8f26;
  --accent-400: #ffa64d;
  --brand-950: #000000;
  --brand-900: #111111;
  --brand-800: #1a1a1a;
  --brand-700: #262626;
  --brand-600: #333333;
  --surface-muted: #f4f4f4;
  --line: #e6e6e6;
  --muted: #6b6b6b;
  --ok: #188038;
  --danger: #d93025;
  --surface: #ffffff;
  --radius: 16px;
  --font: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--brand-800);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 122, 0, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

a { color: var(--accent-600); text-decoration: none; }
a:hover { color: #e86e00; }

.wrap {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-900);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a, .ghost-btn {
  color: var(--brand-600);
  font: 500 0.82rem/1 var(--font);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav a:hover, .ghost-btn:hover {
  background: rgba(255, 122, 0, 0.08);
  color: var(--accent-600);
}

.lang-switch {
  display: inline-flex;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font: 600 0.72rem/1 var(--font);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent-600);
  color: #fff;
}

.hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--brand-900);
}

.hero h1 span { color: var(--accent-600); }

.hero p {
  margin: 0.75rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.5rem 0 2.5rem;
}

.tool-card {
  display: block;
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.35);
  color: inherit;
}

.tool-card .emoji {
  font-size: 1.4rem;
  margin-bottom: 0.55rem;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-900);
}

.tool-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-hero {
  padding: 1.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--brand-900);
}

.page-hero p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-600);
}

.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font: 500 0.95rem/1.2 var(--font);
  color: var(--brand-800);
  background: #fff;
}

.field input:focus, .field select:focus {
  outline: 2px solid rgba(255, 122, 0, 0.3);
  border-color: var(--accent-600);
}

.field.full { grid-column: 1 / -1; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  font: 600 0.9rem/1 var(--font);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent-600);
  color: #fff;
}

.btn.primary:hover { background: #e86e00; }

.btn.secondary {
  background: var(--surface-muted);
  color: var(--brand-700);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat {
  padding: 0.9rem;
  border-radius: 12px;
  background: #fffaf5;
  border: 1px solid rgba(255, 122, 0, 0.15);
}

.stat .label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.stat .value {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-600);
  letter-spacing: -0.02em;
}

.chart-wrap {
  margin-top: 1rem;
  min-height: 280px;
}

.ad-slot {
  margin: 1.25rem 0;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--surface-muted);
  padding: 1rem;
  text-align: center;
}

.seo {
  margin: 2rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebebeb;
}

.seo h2 {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
  color: var(--brand-900);
}

.seo h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--accent-600);
}

.seo p, .seo li {
  color: var(--muted);
  font-size: 0.92rem;
}

.seo details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.55rem 0;
  background: #fff;
}

.seo summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-800);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

th:first-child, td:first-child { text-align: left; }

th { color: var(--brand-600); font-weight: 600; }

.footer {
  margin-top: 1rem;
  padding: 1.35rem 0 2rem;
  background: var(--surface-muted);
  color: #8a8a8a;
  font-size: 0.8rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  justify-content: center;
  align-items: center;
}

.footer a { color: var(--brand-600); }
.footer a:hover { color: var(--accent-600); }

.note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.support {
  margin: 2rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid #ebebeb;
  text-align: center;
}

.support-copy h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--brand-900);
}

.support-copy p {
  margin: 0.45rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.pay-methods {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.pay-card {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.pay-card-head {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pix-logo strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #32bcad;
}

.pay-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.btn.donate {
  background: #ffc43a;
  color: #111;
  border-color: #ffc43a;
  width: 100%;
}

.btn.donate:hover { filter: brightness(0.96); }

.pix-key-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-600);
}

.pix-key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.pix-key {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: 500 0.78rem/1.3 ui-monospace, Consolas, monospace;
  color: var(--brand-800);
  background: #fffaf5;
}

.pix-feedback {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: var(--ok);
}

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

.seo-grid article {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.seo-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--accent-600);
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 800px) {
  .tool-grid, .form-grid, .results, .pay-methods, .seo-grid {
    grid-template-columns: 1fr;
  }
  .pix-key-row { grid-template-columns: 1fr; }
}
