/* =====================================================
   FERRAMENTAS.CSS — Hub + páginas individuais
   Depende de styles.css já carregado (tokens do site)
   ===================================================== */

/* ── BREADCRUMB ─────────────────────────────────────── */
.ft-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(240,242,244,.38);
  text-transform: uppercase;
  margin-bottom: 40px;
  padding-top: 48px;
}
.ft-breadcrumb a {
  color: rgba(240,242,244,.38);
  transition: color .18s;
}
.ft-breadcrumb a:hover { color: var(--green-bright); }
.ft-breadcrumb-sep { font-size: .6rem; }
.ft-breadcrumb-current { color: rgba(240,242,244,.65); }

/* ── PAGE HEADER ────────────────────────────────────── */
.ft-page-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.ft-page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(52,196,124,.22);
  border-radius: 8px;
  background: rgba(52,196,124,.04);
}
.ft-page-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green-bright);
}
.ft-page-title {
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
.ft-page-desc {
  font-size: 1rem;
  color: rgba(240,242,244,.58);
  line-height: 1.75;
  max-width: 680px;
}

/* ── HUB — CARDS GRID ───────────────────────────────── */
.ft-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 768px) { .ft-hub-grid { grid-template-columns: 1fr; } }

.ft-hub-card {
  background: var(--black);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  transition: background .22s;
  position: relative;
}
.ft-hub-card--featured {
  background: var(--surface);
}
.ft-hub-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-bright), var(--primary-2));
}
@media (hover: hover) {
  .ft-hub-card:hover { background: var(--surface); }
  .ft-hub-card:hover .ft-hub-arrow { color: var(--green-bright); transform: translateX(3px); }
}
.ft-hub-icon {
  font-size: 2rem;
  line-height: 1;
}
.ft-hub-num {
  font-family: "Roboto Mono", monospace;
  font-size: .62rem;
  letter-spacing: .12em;
  color: rgba(240,242,244,.35);
  text-transform: uppercase;
}
.ft-hub-name {
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.1;
}
.ft-hub-desc {
  font-size: .9rem;
  color: rgba(240,242,244,.55);
  line-height: 1.7;
  flex: 1;
}
.ft-hub-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ft-hub-tag {
  font-family: "Roboto Mono", monospace;
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: rgba(240,242,244,.4);
}
.ft-hub-arrow {
  font-family: "Roboto Mono", monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,242,244,.35);
  margin-top: 4px;
  transition: color .2s, transform .2s;
  display: inline-block;
}

/* ── TOOL WRAPPER ───────────────────────────────────── */
.ft-tool-wrap {
  max-width: 860px;
}

/* ── FORM ELEMENTS ──────────────────────────────────── */
.ft-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .ft-form-grid { grid-template-columns: 1fr; } }

.ft-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ft-form-group.full { grid-column: 1 / -1; }

.ft-label {
  font-family: "Roboto Mono", monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,242,244,.42);
}

.ft-input,
.ft-select {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  padding: 13px 16px;
  font-family: "Roboto Mono", monospace;
  font-size: .95rem;
  border-radius: 10px;
  outline: none;
  width: 100%;
  transition: border-color .18s;
  -webkit-appearance: none;
}
.ft-input:focus,
.ft-select:focus { border-color: rgba(52,196,124,.45); }
.ft-input::placeholder { color: rgba(240,242,244,.22); }
.ft-select option { background: #0f1620; }

.ft-benchmark-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: .82rem;
  color: rgba(240,242,244,.45);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ft-benchmark-label {
  font-family: "Roboto Mono", monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-bright);
  white-space: nowrap;
}

/* ── BUTTONS ────────────────────────────────────────── */
.ft-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ft-btn-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--green-bright), #22C55E);
  color: #07110b;
  transition: opacity .2s, transform .2s;
}
.ft-btn-calc:hover { opacity: .9; transform: translateY(-1px); }
.ft-btn-calc:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ft-btn-reset {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-family: "Roboto Mono", monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(240,242,244,.38);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.ft-btn-reset:hover { border-color: rgba(255,255,255,.22); color: rgba(240,242,244,.7); }

/* ── RESULT CARD ────────────────────────────────────── */
.ft-result {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  display: none;
  animation: ftFadeIn .3s ease;
}
.ft-result.show { display: block; }
@keyframes ftFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ft-result-label {
  font-family: "Roboto Mono", monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,242,244,.3);
  margin-bottom: 22px;
}

.ft-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.ft-metric {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.ft-metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green-bright);
}
.ft-metric.m-danger::before  { background: #f87171; }
.ft-metric.m-warning::before { background: #facc15; }
.ft-metric.m-success::before { background: #4ade80; }
.ft-metric-label {
  font-family: "Roboto Mono", monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,242,244,.38);
  margin-bottom: 8px;
}
.ft-metric-value {
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--white);
}
.ft-metric-sub {
  font-size: .72rem;
  color: rgba(240,242,244,.38);
  margin-top: 4px;
}

/* ── VERDICT ────────────────────────────────────────── */
.ft-verdict {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 14px;
}
.ft-verdict.v-good    { background: rgba(74,222,128,.07);  border: 1px solid rgba(74,222,128,.2);  color: #4ade80; }
.ft-verdict.v-bad     { background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.2); color: #f87171; }
.ft-verdict.v-neutral { background: rgba(250,204,21,.07);  border: 1px solid rgba(250,204,21,.2);  color: #facc15; }

/* ── DIAGNÓSTICO ────────────────────────────────────── */
.ft-diag-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.ft-diag-q.answered { border-color: rgba(52,196,124,.25); }
.ft-diag-q-num {
  font-family: "Roboto Mono", monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ft-diag-q-text {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--white);
}
.ft-diag-options { display: flex; flex-direction: column; gap: 7px; }
.ft-diag-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  color: rgba(240,242,244,.72);
  transition: all .15s;
  user-select: none;
}
.ft-diag-opt:hover { border-color: rgba(52,196,124,.3); color: var(--white); }
.ft-diag-opt input { display: none; }
.ft-diag-opt.selected {
  border-color: rgba(52,196,124,.4);
  background: rgba(52,196,124,.05);
  color: var(--white);
}

.ft-score-display { text-align: center; padding: 36px 20px; }
.ft-score-num {
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 6px;
}
.ft-score-badge {
  font-family: "Roboto Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ft-recs { margin-top: 22px; }
.ft-rec-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  line-height: 1.6;
}
.ft-rec-item:last-child { border-bottom: none; }
.ft-rec-icon { font-size: 1.1rem; min-width: 22px; margin-top: 1px; }
.ft-rec-q { font-weight: 700; color: var(--white); margin-bottom: 3px; font-size: .85rem; }
.ft-rec-tip { color: rgba(240,242,244,.52); font-size: .83rem; }

/* ── CHECKLIST ──────────────────────────────────────── */
.ft-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.ft-progress-label { font-size: .82rem; color: rgba(240,242,244,.4); white-space: nowrap; }
.ft-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  overflow: hidden;
}
.ft-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), #22C55E);
  border-radius: 999px;
  width: 0%;
  transition: width .35s ease;
}
.ft-progress-pct {
  font-family: "Roboto Mono", monospace;
  font-size: .75rem;
  color: var(--green-bright);
  min-width: 36px;
  text-align: right;
}

.ft-cl-section { margin-bottom: 30px; }
.ft-cl-section-title {
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-bright);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(52,196,124,.12);
}
.ft-cl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left .15s;
  user-select: none;
}
.ft-cl-item:last-child { border-bottom: none; }
.ft-cl-item:hover { padding-left: 5px; }
.ft-cl-box {
  width: 19px; height: 19px;
  min-width: 19px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: all .18s;
}
.ft-cl-item.checked .ft-cl-box {
  background: var(--green-bright);
  border-color: var(--green-bright);
}
.ft-cl-item.checked .ft-cl-box::after {
  content: '✓';
  font-size: 11px;
  color: #07110b;
  font-weight: 900;
}
.ft-cl-body { flex: 1; }
.ft-cl-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  transition: color .18s;
}
.ft-cl-item.checked .ft-cl-title {
  color: rgba(240,242,244,.3);
  text-decoration: line-through;
}
.ft-cl-desc {
  font-size: .78rem;
  color: rgba(240,242,244,.38);
  line-height: 1.55;
  margin-top: 3px;
}
.ft-cl-badge {
  font-family: "Roboto Mono", monospace;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 5px;
}
.ft-cl-badge.critical  { background: rgba(248,113,113,.12); color: #f87171; }
.ft-cl-badge.important { background: rgba(250,204,21,.12);  color: #facc15; }
.ft-cl-badge.nice      { background: rgba(74,222,128,.12);  color: #4ade80; }

/* ── BOTTOM CTA ─────────────────────────────────────── */
.ft-bottom-cta {
  margin-top: 60px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ft-bottom-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green-bright), var(--primary-2));
}
.ft-bottom-cta h3 {
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.ft-bottom-cta p {
  font-size: .9rem;
  color: rgba(240,242,244,.5);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 22px;
}

/* ── SECTION PADDING ────────────────────────────────── */
.ft-section {
  padding: 0 0 80px;
}
@media (max-width: 768px) {
  .ft-section { padding: 0 0 56px; }
  .ft-page-header { margin-bottom: 32px; padding-bottom: 28px; }
  .ft-breadcrumb { padding-top: 32px; margin-bottom: 24px; }
  .ft-hub-grid { border-radius: 12px; }
  .ft-hub-card { padding: 26px 22px; }
}