/* Thrifted Tool Purchase Analyzer */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #fafafa;
}
.site-header {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header h1 { margin: 0; font-size: 1.25rem; }
.site-header nav a {
  margin-left: 1rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}
.site-header nav a:hover { text-decoration: underline; }
.hero { padding: 2rem 1.5rem; max-width: 600px; margin: 0 auto; }
.tagline { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; color: #333; }
.analyzer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field-group {
  display: flex;
  flex-direction: column;
}
.field-group label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.field-group input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
}
.field-group input:focus { outline: 2px solid #0066cc; }
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.presets fieldset {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0;
}
.presets legend { font-weight: 500; padding-bottom: 0.25rem; }
.preset-btn {
  padding: 0.5rem 0.75rem;
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.preset-btn.active { background: #0066cc; color: #fff; }
.analyze-btn {
  padding: 1rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}
.analyze-btn:hover { background: #0052a3; }
.results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}
.results h2 { margin-top: 0; font-size: 1.25rem; }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.metric { display: flex; flex-direction: column; }
.metric dt { font-size: 0.8rem; color: #666; margin-bottom: 0.25rem; }
.metric dd { font-size: 1.5rem; font-weight: 600; margin: 0; color: #222; }
.value.positive { color: #22863a; }
.value.negative { color: #d63638; }
.result-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.action-btn {
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.action-btn:hover { background: #e5e5e5; }
.hidden { display: none; }
.examples, .tips { padding: 2rem 1.5rem; max-width: 600px; margin: 0 auto; }
.examples h2, .tips h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.example { margin-bottom: 1.5rem; padding: 1rem; background: #fff; border-radius: 6px; border: 1px solid #e5e5e5; }
.example h3 { margin-top: 0; font-size: 1.1rem; }
.example p { margin: 0.5rem 0; }
.tips ul { padding-left: 1.25rem; }
.tips li { margin-bottom: 0.5rem; }
.site-footer {
  background: #fff;
  padding: 1.5rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
.site-footer a { color: #0066cc; }
.version { margin-top: 0.5rem; color: #999; }
@media (min-width: 600px) {
  .hero { padding: 3rem 2rem; }
  .tagline { font-size: 1.75rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .examples, .tips { padding: 3rem 2rem; }
}
@media (min-width: 768px) {
  body { max-width: 720px; margin: 0 auto; }
  .analyzer-form { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .field-group { flex: 1 1 200px; margin: 0; }
  .presets { justify-content: flex-end; flex-basis: 100%; }
  .result-actions { justify-content: flex-end; }
}
@media (min-width: 1024px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
