/* === Tools pages — shared on top of /styles.css === */

.tools-hero {
  text-align: center;
  padding: 80px 64px 48px;
}
.tools-hero h1 {
  font-size: clamp(40px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 16px 0 12px;
}
.tools-hero .sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 64px 80px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tool-card.is-active {
  border: 2px solid #EAB308;
}
.tool-card.is-active:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(250, 204, 21, .35);
}
.tool-card.is-soon {
  opacity: .85;
}

.tool-prev {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.tool-prev-logo { background: #FFFAEB; }
.tool-prev-qr   { background: #111827; }
.tool-prev-zip  { background: var(--surface-secondary); }

.tool-prev-frame {
  width: 240px; height: 135px;
  background: var(--surface);
  border: 2px dashed var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.tool-prev-frame .dim {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 700; color: var(--accent-dark);
}
.tool-prev-frame .lbl {
  font-size: 11px; font-weight: 500; color: var(--accent-dark); opacity: .7;
}

.qr-card {
  width: 96px; height: 96px;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
}
.qr-row { display: grid; grid-template-columns: 18px 8px 16px 18px; gap: 4px; }
.qr-row > div { background: #111827; border-radius: 2px; }
.qr-row .accent { background: var(--accent); }

.zip-row { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.zip-before { font-size: 22px; color: var(--fg-muted); text-decoration: line-through; }
.zip-after { font-size: 28px; color: var(--green-dark); }
.zip-arrow { display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: 'Inter', sans-serif; font-weight: 500; color: var(--green-dark); }

.tool-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.tool-icon-active { background: var(--accent-soft); color: var(--accent-dark); }
.tool-icon-soon { background: var(--surface-secondary); color: var(--fg-secondary); }

.tool-body h3 { font-size: 20px; font-weight: 700; margin: 0; }
.tool-body p { font-size: 13px; line-height: 1.55; color: var(--fg-secondary); margin: 0; flex: 1; }

.tool-btn {
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .25s ease;
}
.tool-btn-primary { background: var(--surface-inverse); color: var(--fg-inverse); }
.tool-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(17, 24, 39, .35); }
.tool-btn-soon {
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  font-weight: 500;
  background: var(--surface);
  cursor: not-allowed;
}

@media (max-width: 920px) {
  .tools-hero { padding: 56px 24px 32px; }
  .tools-grid { grid-template-columns: 1fr; padding: 16px 24px 56px; }
}
