/* Revision: 2026-03-22 – Initial styles for QBOSnapShot tool page */

/* ===== TOOL PAGE BODY ===== */
.tool-page {
  background-color: #0a0a0a;
}

/* ===== TOOL HERO STRIP ===== */
.tool-hero {
  background: linear-gradient(135deg, #111827 0%, #0a0a0a 60%, #0f1a0f 100%);
  border-bottom: 1px solid #1f2937;
  padding: 64px 0 56px;
}

.tool-hero-inner {
  text-align: center;
}

.tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.tool-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px)  { .tool-title { font-size: 52px; } }
@media (min-width: 1280px) { .tool-title { font-size: 60px; } }

.tool-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: #9ca3af;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 768px) { .tool-subtitle { font-size: 18px; } }

.tool-value-prop {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: #e2e8f0;
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

@media (min-width: 768px) { .tool-value-prop { font-size: 22px; } }

.tool-safety-line {
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #4ade80;
  margin-top: 20px;
}

/* ===== MAIN ===== */
.tool-main {
  padding: 64px 0;
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: #111111;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: #374151;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1a3a1a;
  border: 1px solid #2d6a2d;
  color: #4ade80;
  font-family: var(--font-logo);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-family: var(--font-logo);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== ACTION PANEL ===== */
.action-panel {
  background-color: #111111;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .action-panel {
    padding: 64px 80px;
  }
}

.action-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.action-state.hidden {
  display: none;
}

.action-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) { .action-heading { font-size: 34px; } }

.action-subtext {
  font-family: var(--font-body);
  font-size: 15px;
  color: #6b7280;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.action-subtext strong {
  color: #9ca3af;
  font-weight: 600;
}

/* ===== CONNECT BUTTON ===== */
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #166534;
  color: #ffffff;
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

.btn-connect:hover {
  background-color: #15803d;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-connect:active {
  transform: translateY(0);
}

/* ===== RESET BUTTON ===== */
.btn-reset {
  background: transparent;
  border: 1px solid #374151;
  color: #6b7280;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-top: 4px;
}

.btn-reset:hover {
  border-color: #6b7280;
  color: #9ca3af;
}

/* ===== ACTION NOTE ===== */
.action-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: #4b5563;
  margin: 0;
}

/* ===== SPINNER ===== */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #1f2937;
  border-top-color: #4ade80;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background-color: #1f2937;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4ade80;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ===== ENTITY LOG ===== */
.entity-log {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #4b5563;
  max-height: 120px;
  overflow-y: auto;
  width: 100%;
  max-width: 400px;
  text-align: left;
  line-height: 1.8;
}

.entity-log .log-line {
  display: block;
}

.entity-log .log-line.done {
  color: #4ade80;
}

/* ===== SUCCESS / ERROR ICONS ===== */
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #1a3a1a;
  border: 2px solid #4ade80;
  color: #4ade80;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #3a1a1a;
  border: 2px solid #f87171;
  color: #f87171;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== WHAT'S INCLUDED ===== */
.included-section {
  margin-top: 16px;
}

.section-heading-sm {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 32px;
}

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

@media (min-width: 768px) {
  .included-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.included-item {
  background-color: #111111;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.included-item:hover {
  border-color: #374151;
  color: #9ca3af;
}
