:root {
  --bg-color: #f7f9fc;
  --text-main: #334155;
  --text-light: #64748b;
  --primary: #0f172a;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --success: #16a34a;
  --success-hover: #15803d;
  --surface: #ffffff;
  --border: #e2e8f0;
  --font-family: system-ui, -apple-system, sans-serif;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex-btwn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Component */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

/* Main Content Sections */
main {
  flex: 1;
  padding: 4rem 1.5rem;
}

.hero-section h1 {
  font-size: 2.75rem;
  max-width: 800px;
}

.hero-section p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 800px;
}

.guide-section {
  margin-top: 4rem;
  border-top: 2px dashed var(--border);
  padding-top: 3rem;
}

/* Interactive App Container */
.app-container {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 33.33%;
  transition: width 0.3s ease;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.tab {
  color: var(--text-light);
  font-weight: 600;
  padding: 0.5rem 0;
}

.tab.active {
  color: var(--primary);
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1.5rem;
  background: var(--bg-color);
}

textarea:focus {
  outline: 2px solid var(--primary);
}

.button-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--surface);
  transition: background 0.2s;
}

.btn:hover {
  background: #334155;
}

.btn-secondary {
  background: var(--border);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-success {
  background: var(--success);
}

.btn-success:hover {
  background: var(--success-hover);
}

.report-output {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--success);
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--surface);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer a {
  color: #cbd5e1;
  font-size: 0.875rem;
  margin-right: 1.5rem;
}

.site-footer .copyright {
  font-size: 0.875rem;
  color: #94a3b8;
}

@media (max-width: 600px) {
  .tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .button-group {
    flex-direction: column;
  }
}


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