/* Reset and base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f9fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav a {
  color: #4b5563;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: #0f172a; text-decoration: underline; }

/* Main layout */
.main-content { flex: 1; padding: 2rem 0 3rem; }
.intro { margin-bottom: 2rem; }
.intro h1 { font-size: 2.2rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.subtitle { font-size: 1.2rem; color: #4b5563; margin: 0.5rem 0 1rem; }
.intro p { max-width: 700px; color: #374151; }

/* Calculator layout */
.calculator-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

/* Controls */
.controls-panel h2 { font-size: 1.3rem; margin-bottom: 1rem; color: #0f172a; }
.control-group { margin-bottom: 1.2rem; }
.control-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; color: #374151; }
.slider-container { display: flex; align-items: center; gap: 0.75rem; }
input[type="range"] { flex: 1; accent-color: #2563eb; }
output { font-weight: 700; color: #2563eb; min-width: 2rem; text-align: center; }
select { width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 0.9rem; }

.presets { margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.presets span { font-size: 0.85rem; color: #6b7280; margin-right: 0.25rem; }
.presets button {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.presets button:hover { background: #e5e7eb; border-color: #9ca3af; }

.actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.actions button {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.actions button:hover { background: #1d4ed8; }

/* Results */
.results-panel h2 { font-size: 1.3rem; margin-bottom: 1rem; color: #0f172a; }
.results-table { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.table-header, .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.75rem 1rem;
  align-items: center;
  font-size: 0.9rem;
}
.table-header { background: #f9fafb; font-weight: 700; color: #374151; border-bottom: 2px solid #e5e7eb; }
.table-row { border-bottom: 1px solid #f3f4f6; cursor: default; transition: background 0.15s; }
.table-row:hover { background: #f0f9ff; }
.table-row:last-child { border-bottom: none; }
.col-net { font-weight: 700; color: #059669; }
.col-startup, .col-confidence { color: #6b7280; }

.hustle-detail {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #92400e;
  min-height: 3rem;
}

/* Supporting content */
.supporting-content { margin-top: 2rem; }
.supporting-content h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #0f172a; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.support-card { background: #ffffff; padding: 1.25rem; border-radius: 8px; border: 1px solid #e5e7eb; }
.support-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #1e293b; }
.support-card dl { margin-top: 0.5rem; }
.support-card dt { font-weight: 600; margin-top: 0.5rem; }
.support-card dd { margin-left: 1rem; color: #4b5563; font-size: 0.9rem; }

.caveats-list { list-style: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; color: #374151; }
.caveats-list li { margin-bottom: 0.4rem; }
.faq-block { margin-top: 2rem; }
.faq-block details { margin-bottom: 0.75rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0.75rem 1rem; }
.faq-block summary { font-weight: 600; cursor: pointer; color: #1e293b; }
.faq-block p { margin-top: 0.5rem; color: #4b5563; font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}
.site-footer a { color: #2563eb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.version { margin-top: 0.5rem; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 750px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .table-header, .table-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 0.8rem; }
  .intro h1 { font-size: 1.8rem; }
  .site-nav a { margin-left: 0.75rem; }
}
@media (max-width: 500px) {
  .table-header, .table-row { grid-template-columns: 2fr 1fr 1fr; }
  .col-confidence { display: none; }
  .actions { flex-direction: column; }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .controls-panel, .actions, .presets, .hustle-detail, .supporting-content { display: none; }
  .calculator-layout { box-shadow: none; border: none; padding: 0; }
  .results-panel { width: 100%; }
}



/* 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;
}
