:root {
  --blue: #1a56db;
  --red: #e02424;
  --dark: #111827;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

.topbar {
  background: var(--dark);
  padding: 14px 20px;
}

.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 24px;
  width: auto;
}

.topnav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topnav a {
  color: #d1d5db;
  font-size: 0.95rem;
}

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

/* Layout */

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.tagline {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

/* IP hero */

.ip-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}

.ip-label {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.ip-value {
  margin: 8px 0 16px;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
  word-break: break-word;
}

.copy-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
}

.copy-btn:hover:not(:disabled) {
  border-color: var(--blue);
}

.copy-btn:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.65;
}

.copy-btn.copied {
  color: #0f766e;
  border-color: #0f766e;
}

.copy-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.ip-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 24px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.privacy-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Pares rótulo/valor, usados no card de IP e no bloco do dispositivo */

.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.field dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

/* Sections */

.info-section,
.history-section,
.device-section,
.faq-section,
.articles-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.info-section h2,
.history-section h2,
.device-section h2,
.faq-section h2,
.articles-section h2 {
  text-align: center;
  font-size: 1.3rem;
  margin: 0 0 16px;
}

/* Lista de guias na home */

.article-list {
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.article-list a {
  font-weight: 600;
  font-size: 1.02rem;
}

.article-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.info-section p {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--text);
}

.info-section h3 {
  max-width: 760px;
  margin: 24px auto 6px;
  font-size: 1.05rem;
}

/* Navegador e dispositivo */

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.device-grid .field {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

/* Perguntas frequentes */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text);
}

/* Páginas de conteúdo (Sobre, Contato, Privacidade) */

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.page-content h1 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.page-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.page-content h3 {
  font-size: 1.02rem;
  margin: 20px 0 6px;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin: 0 0 14px;
}

.page-content ul,
.page-content ol {
  padding-left: 22px;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

.callout > :last-child {
  margin-bottom: 0;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  text-decoration: underline;
}

.page-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 20px;
}

.contact-box p {
  margin: 0;
}

.contact-email {
  font-size: 1.15rem;
  font-weight: 700;
}

/* History table */

.table-wrap {
  overflow-x: auto;
}

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

thead {
  background: var(--dark);
  color: #fff;
}

th,
td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

.history-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Footer */

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .ip-value {
    font-size: 2rem;
  }
}
