:root {
  --bg-color: #f7f9fc;
  --text-main: #334155;
  --text-light: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #e2e8f0;
  --secondary-hover: #cbd5e1;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

/* Sections */
.hero-section {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.hero-section p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Tool Container */
.tool-section {
  padding: 2rem 0;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 4px solid var(--primary);
}

#question-text {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

#question-context {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

.btn.secondary {
  background: var(--secondary);
  color: var(--text-main);
}

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

.hidden { display: none !important; }

/* Result Block */
.result-highlight {
  font-size: 2.5rem;
  margin: 1rem 0;
  color: var(--primary);
}

#result-rationale {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Content Grid */
.content-section {
  padding: 4rem 0;
}

.grid-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media(min-width: 768px) {
  .grid-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.content-section h2 {
  margin-bottom: 1rem;
  color: #1e293b;
}

.content-section p {
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media(min-width: 600px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer p {
  color: var(--text-light);
  font-size: 0.875rem;
}


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