:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #4B5563;
  --border: #E5E7EB;
}

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

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

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

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--primary);
}
.site-header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-muted);
}
.site-header nav a:hover {
  color: var(--primary);
}

/* Sections */
section {
  padding: 4rem 0;
}
.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-section p, .info-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

.concept-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.concept-box {
  flex: 1;
  min-width: 150px;
  text-align: center;
  background: #EEF2FF;
  color: var(--primary);
  padding: 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.2rem;
}
.connector {
  font-size: 2rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  background: #E5E7EB;
  color: var(--text-main);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn:hover {
  background: #D1D5DB;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.reflection-area {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.reflection-area label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.reflection-area textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1rem;
  resize: vertical;
}

#result-area {
  margin-top: 2rem;
  background: #ECFDF5;
  border: 1px solid #10B981;
  padding: 1.5rem;
  border-radius: 6px;
}
#result-area.hidden {
  display: none;
}
#result-area h3 {
  color: #065F46;
  margin-bottom: 1rem;
}
#result-area ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #064E3B;
}
.encouragement {
  font-style: italic;
  color: #065F46;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-footer nav {
  margin-top: 1rem;
}
.site-footer nav a {
  color: var(--text-muted);
  margin: 0 0.5rem;
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 600px) {
  .concept-display {
    flex-direction: column;
  }
  .connector {
    transform: rotate(90deg);
  }
}


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