:root {
  --bg: #0b0f1a;
  --surface: #111623;
  --border: #1e2738;
  --accent: #1d9bf0;
  --accent-hover: #4ab3ff;
  --text-main: #ffffff;
  --text-muted: #9ba3b5;
}

body.light {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #d6dbe6;
  --text-main: #0b1020;
  --text-muted: #4a4f5c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
}

.nav-title {
  font-weight: 700;
  font-size: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-right a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-right a:hover {
  color: var(--accent);
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  margin-top: 5px;
}

/* LAYOUT */
.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* HERO */
.hero {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-muted);
}

/* CARD */
.card {
  max-width: 560px;
  margin: 0 auto 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

h2 {
  margin-top: 0;
}

/* FORM */
.field {
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.field input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
}

/* PRESETS */
.preset-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.preset-buttons {
  display: flex;
  gap: 8px;
}

.btn-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-chip.active {
  background: var(--accent);
  color: #000;
}

/* BUTTONS */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* RESULTS */
.result-card {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-summary {
  margin-top: 14px;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
}

.footer-icons a {
  color: var(--text-muted);
  transition: 0.2s;
}

.footer-icons a:hover {
  color: var(--accent);
  transform: scale(1.15);
}

.hidden {
  display: none;
}

/* MOBILE */
@media (max-width: 640px) {
  .nav-right a {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
/* Espaço extra acima do botão "Copy summary" no mobile */
@media (max-width: 640px) {
  #copySummary {
    margin-top: 16px;
    display: block;
  }
}


