/* =============================================
   JIDŌ CAB — Design System Compartilhado
   Baseado em https://www.jido.cab
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* --- Tokens --- */
:root {
  --bg:          #0a0a0c;
  --surface:     #111115;
  --surface2:    #18181e;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.14);
  --text:        #edeef8;
  --muted:       #7a7a8a;
  --hint:        #4a4a58;
  --accent:      #a855f7;
  --accent-dim:  rgba(168,85,247,0.12);
  --accent-dim2: rgba(168,85,247,0.06);
  --gain:        #3ddc84;
  --gain-dim:    rgba(61,220,132,0.12);
  --red:         #ff5f5f;
  --red-dim:     rgba(255,95,95,0.10);
  --amber:       #f5b942;
  --display:     'Barlow Condensed', sans-serif;
  --body:        'Barlow', sans-serif;
  --radius:      12px;
  --radius-lg:   16px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .15s;
}
a:hover { opacity: .8; }

img { display: block; max-width: 100%; }

ul { list-style: none; }

/* --- Layout --- */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: .01em;
}

.navbar-logo .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.navbar-logo span {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-link {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.navbar-link:hover {
  color: var(--text);
  background: var(--surface);
  opacity: 1;
}

.navbar-cta {
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.navbar-cta:hover { opacity: .85; }

/* --- Page Hero --- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(168,85,247,0.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-hero .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease infinite;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 16px;
}

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

.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Sections --- */
.section {
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-lead {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card + .card {
  margin-top: 12px;
}

.card-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  color: var(--muted);
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 1px;
}

.card-accent {
  background: var(--accent-dim2);
  border-color: rgba(168,85,247,0.2);
}

.card-gain {
  background: var(--gain-dim);
  border-color: rgba(61,220,132,0.2);
}

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

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

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- Stat chips --- */
.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat-chip {
  flex: 1;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}

.stat-chip .stat-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-chip .stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .03em;
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: var(--surface2); }

tbody td {
  padding: 12px 16px;
  color: var(--text);
  vertical-align: middle;
}

tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

/* --- Pill / Tag --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pill-accent {
  background: var(--accent-dim);
  border-color: rgba(168,85,247,0.25);
  color: var(--accent);
}

.pill-gain {
  background: var(--gain-dim);
  border-color: rgba(61,220,132,0.25);
  color: var(--gain);
}

/* --- Steps --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-bottom: none; padding-bottom: 0; }

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(168,85,247,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.step-body strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 700;
}

.step-body p, .step-body span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 18px 0 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s;
  font-family: var(--display);
  font-weight: 400;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 18px;
}

/* --- Example box --- */
.example-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}

.example-box .ex-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.example-row .ex-label { color: var(--muted); }

.example-row .ex-val { color: var(--text); font-weight: 600; }

.example-row .ex-val.accent { color: var(--accent); }

.example-row .ex-val.gain { color: var(--gain); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
  white-space: nowrap;
}

.btn-primary:hover { opacity: .1; }

.btn-primary:active {
  transform: scale(.98);
  opacity: .9;
}

.btn-primary.full { width: 100%; justify-content: center; font-size: 18px; padding: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 13px 24px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

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

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.08);
}

.field small {
  display: block;
  font-size: 11px;
  color: var(--hint);
  margin-top: 5px;
}

.field select option { background: var(--surface2); }

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* --- Result row (simulador) --- */
.result-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.result-row .r-label { color: var(--muted); }

.result-row .r-val {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.result-row .r-val.gain { color: var(--gain); font-size: 22px; }

.result-row .r-val.accent { color: var(--accent); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dim), var(--surface));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-top: 64px;
}

.cta-banner h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
}

/* --- Nota / disclaimer --- */
.nota {
  font-size: 12px;
  color: var(--hint);
  line-height: 1.7;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  margin-top: 32px;
}

/* --- Footer --- */
footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--hint);
  line-height: 1.8;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* --- Highlight numbers --- */
.big-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}

/* --- Animations --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .page-wrap { padding: 0 16px 60px; }
  .page-hero { padding: 36px 0 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { padding: 28px 20px; }
}
