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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo {
  flex-shrink: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0;
}

.description {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.decisions-grid {
  margin: 3rem 0;
}

.decisions-grid h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.decision-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  min-height: 120px;
}

.decision-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.decision-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.decision-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.breadcrumb {
  margin: 1rem 0;
}

.breadcrumb a,
.home-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.breadcrumb a:hover,
.home-link:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.decision-wrapper {
  max-width: 600px;
  margin: 2rem auto;
}

.decision-wrapper h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.decision-description {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.decision-form {
  background: var(--bg-gray);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.875rem;
}

.form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  min-width: 120px;
  font-family: inherit;
}

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

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

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
}

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

.result {
  background: white;
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  animation: slideIn 0.3s ease-out;
}

.result.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.result-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.result-explain {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ad-slot {
  margin: 3rem 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.faq {
  margin: 4rem 0;
  max-width: 800px;
}

.faq h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.faq details {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq summary:hover {
  color: var(--primary-dark);
}

.faq p {
  margin-top: 1rem;
  padding: 0 0.5rem;
  color: var(--text-light);
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

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

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

  .decision-form {
    padding: 1.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
