:root {
  --accent: #1a3a2a;
  --accent-2: #2d6a4a;
  --accent-lt: #e8f0eb;
  --bg: #f4f2ee;
  --blue: #2a5298;
  --border: #ddd9d0;
  --dark: #333;
  --green: #4CAF50;
  --max: 1140px;
  --max-2: 820px;
  --mono: 'DM Mono', monospace;
  --muted: #6b6760;
  --nav-width: 980px;
  --nav-width-content: 100%;
  --radius: 6px;
  --red: #d14233;
  --red-2: #8b1a1a;
  --sans: 'Instrument Sans', sans-serif;
  --serif: 'DM Serif Display', serif;
  --surface: #ffffff;
  --text: #1a1916;
  --yellow: #c8a80a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
}

.wrapper {
  width: 100%;
  max-width: 760px;
  padding: 48px 32px 64px;
  margin: 0 auto;
}

/* -- HERO -- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
}

.hero h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h2 em {
  font-style: italic;
  color: var(--accent-2);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.stat-box {
  background: var(--surface);
  padding: 28px 24px;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* -- SECTION -- */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 56px;
  font-size: 1rem;
}

/* -- CONCEITOS -- */
.concepts {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.concept-item {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
}

.concept-item:last-child {
  border-right: none;
}

.concept-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-lt);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.concept-item h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.concept-item p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* -- FILOSOFIA -- */
.philosophy {
  background: var(--accent);
  color: #fff;
}

.philosophy .section-label {
  color: #7aad8a;
}

.philosophy .section-title {
  color: #fff;
}

.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  max-width: 760px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.philosophy-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.philosophy-block p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.philosophy-block strong {
  color: #fff;
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: var(--mono);

  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7aad8a;
}

/* -- MÉTRICAS -- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 64px;
}

.metric-box {
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}

.metric-val {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.metric-lbl {
  font-size: 0.82rem;
  color: var(--muted);
}

/* -- PREÇOS -- */
#precos {
  background: var(--bg);
}

.pricing-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  width: fit-content;
}

.tab-btn {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: all .2s;
}

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

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}

.price-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 4px 20px rgba(26, 58, 42, 0.08);
}

.price-card.featured {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-plan {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.price-domains {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text);
}

.price-amount {
  margin-bottom: 6px;
}

.price-amount .value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.price-amount .currency {
  font-size: 1rem;
  color: var(--muted);
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.price-amount .period {
  font-size: 0.85rem;
  color: var(--muted);
}

.price-annual {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.price-annual strong {
  color: var(--accent-2);
}

.price-features {
  padding-left: 0;
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: '\2713';
  color: var(--accent-2);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-features li.neg::before {
  content: '—';
  color: var(--border);
}

.price-features li.neg {
  color: #bbb;
}

.btn-plan {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all .2s;
}

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

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

.btn-plan-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-plan-outline:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.pricing-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-note strong {
  color: var(--text);
}

.price-txxt {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.price-txxt strong {
  color: var(--accent-2);
}

/* -- NÃO É -- */
.not-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.not-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.not-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.not-x {
  width: 28px;
  height: 28px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 700;
}

.not-item p {
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 4px;
}

/* -- O QUE FAZ -- */
.yes-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.yes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.yes-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.yes-x {
  width: 28px;
  height: 28px;
  background: #caedd7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 700;
}

.yes-item p {
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 4px;
}

/* -- CTA FINAL -- */
.cta-section {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 100px 24px;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  display: inline-block;
}

.btn-white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost-white {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  display: inline-block;
}

.btn-ghost-white:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* -- FOOTER -- */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 1);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  color:  rgba(255, 255, 255, 1);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 16px;
  font-family: var(--mono);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover {
  color: rgba(144, 238, 144, 1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color .2s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* -- RESPONSIVE -- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }
  .hero-stats {
    max-width: 480px;
  }
  .concepts-grid {
    grid-template-columns: 1fr;
  }
  .concept-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .concept-item:last-child {
    border-bottom: none;
  }
  .philosophy-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .not-grid {
    grid-template-columns: 1fr;
  }
  .yes-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent-2);
  margin-bottom: 32px;
  border-radius: 2px;
}

/* Bandeiras */
.flags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.flags a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.flags a:hover {
  opacity: 0.7;
}

.flags a.active {
  background: var(--bg);
  color: #2c2c2c;
  font-weight: bold;
  pointer-events: none;
  border-bottom: 2px solid #b0916a;
}

.flag-icon {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Bandeira PT via SVG inline */
.flag-pt {
  background: linear-gradient(to right, #006600 40%, #ff0000 40%);
  position: relative;
}

.flag-en {
  background: #012169;
  position: relative;
}

.flag-fr {
  background: linear-gradient(to right, #002395 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ED2939 66.66%);
  position: relative;
}
.flag-es {
  background: linear-gradient(to bottom, #c60b1e 25%, #f1bf00 25%, #f1bf00 75%, #c60b1e 75%);
  position: relative;
}

/* SVG flags */
svg.flag-svg {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Linha separadora */
.divider_park {
  width: 48px;
  height: 2px;
  background-color: #b0916a;
  margin-bottom: 32px;
}

/* Título */
h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 36px;
}

/* Parágrafos */
.paragrafos p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 20px;
  text-align: justify;
}

.paragrafos p:last-child {
  margin-bottom: 0;
}

/* Botão */
.btn-wrap {
  margin-top: 48px;
}

.btn {
  display: inline-block;
  padding: 13px 36px;
  background-color: #2c2c2c;
  color: #f4f1ec;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-radius: 1px;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background-color: #b0916a;
  color: #fff;
}

/* -- TOPBAR -- */
.topbar {
  background: var(--blue);
  padding: 3px 0;
}

.topbar .inner {
  max-width: var(--nav-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 10px;
}

.topbar form.search {
  display: flex;
  align-items: center;
}

.topbar form.search input[type="text"] {
  background: #fff;
  border: 0;
  border-radius: 2px 0 0 2px;
  height: 23px;
  padding: 0 6px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  width: 160px;
}

.topbar form.search button {
  background: #fff;
  border: 0;
  border-radius: 0 2px 2px 0;
  height: 23px;
  padding: 0 7px;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
}

.topbar .social a {
  color: #f0f0f0;
  font-size: 22px;
  margin: 0 3px;
  text-decoration: none;
  line-height: 25px;
  display: inline-block;
  vertical-align: middle;
}

.topbar .social a:hover {
  color: #fff;
}

/* -- SECONDBAR -- */
.secondbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.secondbar .inner {
  max-width: var(--nav-width);
  margin: 0 auto;
  padding: 14px 10px 0;
  position: relative;
  display: flex;
  align-items: center;
}

.lang-fixed {
  margin-left: 60%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-fixed a {
  font-size: 13px;
  text-decoration: none;
  color: #666;
  transform: scale(1.15);

}

.lang-fixed a.active {
  font-weight: bold;
  color: #2c2c2c;
  pointer-events: none;
  border-bottom: 2px solid #000000;
  display: inline-block;
  transform: scale(1.35);

}

.secondbar .logo img {
  height: 50px;
  display: block;
}

.secondbar h1 {
  font-size: 19px;
  color: #666;
  text-align: center;
  flex: 1;
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
  padding: 0 20px;
}

/* -- NAVBAR -- */
header.main {
  background: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 900;
  box-shadow: 1px 1px 10px 3px #ddd;
}

nav.mainmenu {
  background: #fff;
  border-top: 1px solid #eee;
}

nav.mainmenu .inner {
  max-width: var(--nav-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 10px;
  justify-content: flex-end;
}

/* itens de 1º nível — mega-menu full-width */
nav.mainmenu>.inner>.nav-item:not(.simple) {
  position: static;
}

nav.mainmenu .nav-link-top {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

nav.mainmenu .nav-link-top::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--red);
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  transition: width .35s;
}

nav.mainmenu .nav-item:hover .nav-link-top::after,
nav.mainmenu .nav-item.active .nav-link-top::after {
  width: 100%;
}

/* -- MEGA-MENU (dropdown) -- */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  z-index: 800;
  padding: 18px 0;
}

nav.mainmenu .nav-item:hover .mega-menu {
  display: block;
}

.mega-menu .inner {
  max-width: var(--nav-width);
  margin: 0 auto;
  display: flex;
  padding: 0 10px;
}

.mega-col {
  flex: 0 0 auto;
  padding-right: 30px;
  border-right: 1px solid #ddd;
  margin-right: 30px;
  min-width: 140px;
}

.mega-col:last-child {
  border-right: 0;
  margin-right: 0;
}

.mega-col>a.col-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
}

.mega-col>a.col-title:hover {
  color: #555;
  text-decoration: underline;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col ul li a {
  display: block;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 22px;
  font-weight: 400;
}

.mega-col ul li a:hover {
  background: var(--red);
  color: #fff;
}

/* menu simples (dropdown pequeno) para itens "alternative" */
.nav-item.simple {
  position: relative !important;
}

.simple-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  z-index: 1000;
  padding: 5px 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
}

.simple-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-menu ul li a:hover {
  background: var(--red);
  color: #fff;
}

@keyframes blink-green {
    from { background-color: rgba(120, 200, 120, 1); }
    to   { background-color: rgba(200, 240, 200, 1); }
}

.nav-item.simple:hover .simple-menu {
  display: block;
}

.simple-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-menu li+li {
  border-top: 1px solid #eee;
}

.simple-menu li a {
  display: block;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.simple-menu li a:hover {
  color: var(--red);
}

/* -- MOBILE TOGGLE -- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  margin: 4px 0;
  border-radius: 1px;
}

/* -- MOBILE MENU -- */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  max-width: 320px;
  margin: 0 0 0 auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 14px;
}

.mobile-nav li a:hover,
.mobile-nav li a:focus {
  color: var(--red);
}

.mobile-nav li ul a {
  padding-left: 35px;
  background: #fafafa;
}

.mobile-nav li ul ul a {
  padding-left: 50px;
}

.mobile-nav .arrow {
  color: var(--red);
  float: right;
}

/* collapse mobile submenus */
.mobile-nav .sub {
  display: none;
}

.mobile-nav .sub.open {
  display: block;
}

/* -- PLACEHOLDER CONTENT -- */
.page-content {
  max-width: var(--nav-width-content);
  margin: 0 auto;
  padding: 120px 10px 60px;
  color: #555;
  font-size: 15px;
}

/* -- RESPONSIVE -- */
@media (max-width: 993px) {
  .secondbar h1 {
    font-size: 15px;
  }
  nav.mainmenu>.inner {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .topbar .topbar-feed {
    display: none;
  }
  body {
    padding-top: 0px;
  }
}

@media (max-width: 680px) {
  .secondbar h1 {
    display: none;
  }
  body {
    padding-top: 0px;
  }
}

.wrap {
  max-width: var(--max-2);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

h1 em {
  font-style: italic;
  color: var(--accent-2);
}

.sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

/* FORM */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.field { margin-bottom: 22px; }

label {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

label .req { color: var(--red-2); margin-left: 2px; }

input[type="text"],
input[type="number"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

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

@media (max-width: 580px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.98); }

.erro {
  background: var(--surface);
  border: 1px solid var(--red-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red-2);
  margin-bottom: 24px;
}

/* RESULTADO */
.resultado { animation: fade-in .4s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.valor-destaque {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.valor-destaque::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.vd-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.vd-dominio {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 28px;
}

.vd-valores {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.vd-bloco { flex: 1; min-width: 120px; }

.vd-bloco-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.vd-num {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.vd-num.medio { color: var(--accent); font-size: 3rem; }
.vd-num.min   { color: var(--muted); font-size: 1.8rem; }
.vd-num.max   { color: var(--muted); font-size: 1.8rem; }

/* TABELA FACTORES */
.factores {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.fac-header {
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.fac-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.fac-row:last-child { border-bottom: none; }

.fac-nome {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 100px;
}

.fac-desc {
  font-size: 13px;
  color: var(--muted);
}

.fac-factor {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.fac-factor.up   { color: var(--accent-2); font-weight: 700; }
.fac-factor.down { color: var(--red-2); }
.fac-factor.neu  { color: var(--yellow); }

.bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-2);
  transition: width .6s ease;
}

/* RJPDA DETALHE */
.rjpda-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.rjpda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-lt);
}

.rjpda-titulo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.rjpda-score-badge {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
}

.rjpda-score-badge span {
  font-size: 0.8rem;
  color: var(--muted);
}

.rjpda-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.rjpda-row:last-child { border-bottom: none; }

.rjpda-item-nome {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 100px;
}

.rjpda-item-nota {
  font-size: 12px;
  color: var(--text);
  flex: 1;
}

.rjpda-pts {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.rjpda-pts.ok  { color: var(--accent-2); }
.rjpda-pts.nok { color: var(--muted); }

.cached-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  padding: 8px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  letter-spacing: .06em;
}

.aviso {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.section[id] {
  scroll-margin-top: 120px;
}

