/* ═══════════════════════════════════════════
   SmartersWeb Traffic Magnet Resources
═══════════════════════════════════════════ */
.tm-hero-section { padding-top: 7rem; }
.tm-hero-shell { position: relative; }
.tm-hero-shell::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 68%);
  pointer-events: none;
}
.tm-resource-grid { align-items: stretch; }
.tm-resource-card { min-height: 100%; }
.tm-card-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.08);
  color: var(--green-300);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.tm-tool-panel {
  border: 1px solid rgba(96,165,250,0.24);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 42%),
    linear-gradient(180deg, rgba(17,29,53,0.92), rgba(8,13,28,0.92));
  border-radius: var(--r-2xl);
  padding: clamp(1.1rem, 2vw, 1.8rem);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}
.tm-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.tm-score-card,
.tm-price-card {
  min-width: 132px;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-xl);
  background: rgba(34,197,94,0.08);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-glow-green);
}
.tm-score-card--large { min-width: 150px; }
.tm-score-number,
.tm-price-card span {
  display: block;
  color: var(--green-300);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.tm-score-label,
.tm-price-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tm-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(99,120,170,0.18);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.tm-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-400));
  transition: width var(--t-med);
}
.tm-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tm-check-section {
  border: 1px solid var(--border-default);
  background: rgba(15,26,46,0.7);
  border-radius: var(--r-xl);
  padding: 1rem;
}
.tm-check-section h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.tm-check-list { display: grid; gap: 0.65rem; }
.tm-check-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  border-radius: var(--r-md);
  padding: 0.65rem;
  background: rgba(2,8,23,0.28);
  border: 1px solid rgba(99,120,170,0.12);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.tm-check-row:hover {
  border-color: rgba(96,165,250,0.34);
  background: rgba(59,130,246,0.06);
  transform: translateY(-1px);
}
.tm-check-row input { position: absolute; opacity: 0; pointer-events: none; }
.tm-check-ui {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(96,165,250,0.36);
  background: rgba(59,130,246,0.08);
}
.tm-check-ui::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green-300);
  border-bottom: 2px solid var(--green-300);
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.tm-check-row input:checked + .tm-check-ui {
  border-color: rgba(34,197,94,0.54);
  background: rgba(34,197,94,0.14);
}
.tm-check-row input:checked + .tm-check-ui::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}
.tm-check-row strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.45;
}
.tm-check-row small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 0.2rem;
}
.tm-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.2rem;
}
.tm-result-box,
.tm-calc-result,
.tm-report-output {
  border: 1px solid rgba(96,165,250,0.22);
  background: rgba(2,8,23,0.32);
  color: var(--text-secondary);
  border-radius: var(--r-xl);
  padding: 1rem;
  margin-top: 1rem;
}
.tm-calc-result h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.tm-muted { color: var(--text-muted); font-size: 0.86rem; margin-top: 0.35rem; }
.tm-report-grid,
.tm-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tm-field {
  display: grid;
  gap: 0.4rem;
}
.tm-field-wide { grid-column: span 3; }
.tm-field span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}
.tm-field input,
.tm-field select,
.tm-field textarea {
  width: 100%;
  border: 1px solid rgba(99,120,170,0.28);
  background: rgba(2,8,23,0.46);
  color: var(--text-primary);
  border-radius: var(--r-md);
  padding: 0.78rem 0.85rem;
  outline: none;
}
.tm-field input:focus,
.tm-field select:focus,
.tm-field textarea:focus {
  border-color: rgba(96,165,250,0.62);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.tm-report-output {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  min-height: 160px;
}
@media (max-width: 980px) {
  .tm-tool-head { flex-direction: column; }
  .tm-section-grid,
  .tm-report-grid,
  .tm-calc-grid { grid-template-columns: 1fr; }
  .tm-field-wide { grid-column: auto; }
}
@media print {
  .site-header,
  .mobile-nav,
  .service-hero-actions,
  .tm-tool-actions,
  .cta-band,
  .footer,
  .scroll-top-btn,
  .chatbot-widget,
  .cookie-banner { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  body::before, body::after { display: none !important; }
  .tm-tool-panel, .tm-check-section, .service-list-card, .card { border-color: #ddd !important; background: #fff !important; color: #111 !important; box-shadow: none !important; }
  .tm-check-row strong, .section-heading, .card-title, .service-hero-title { color: #111 !important; }
  .tm-check-row small, .section-sub, .card-body { color: #333 !important; }
}
