/* Investor Amp — Compiled Production Stylesheet */
/* All Tailwind utilities resolved statically — no CDN dependency */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, "Calibre", Arial, system-ui, sans-serif;
  background-color: #f9f9f9;
  color: #0a0a0a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-wide {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  width: 100%;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  background-color: #f9f9f9;
}

.logo-link {
  text-decoration: none;
  color: #0a0a0a;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-link:hover {
  color: #2563eb;
}

/* Footer */
.site-footer {
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e5e5e5;
  background-color: #f9f9f9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-copy {
  font-size: 0.75rem;
  color: #999;
}

/* Utility */
.hidden { display: none !important; }

/* State: Welcome */
#state-welcome {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}
#state-welcome:not(.hidden) {
  display: flex;
}

.welcome-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 1.25rem;
}

.welcome-h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #0a0a0a;
  max-width: 560px;
  margin-bottom: 1.25rem;
}

.welcome-h2 {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: #555;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.welcome-meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #999;
  letter-spacing: 0.01em;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.875rem 2.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover { background-color: #1d4ed8; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

/* State: Question */
#state-question {
  flex-direction: column;
  flex: 1;
  padding: 2rem 1.25rem 3rem;
}
#state-question:not(.hidden) {
  display: flex;
}

#state-question .container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.progress-wrap { margin-bottom: 2rem; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

.progress-count {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

.progress-track {
  width: 100%;
  height: 3px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #2563eb;
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.question-engine {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.dimension-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
  min-height: 1rem;
}

.question-text {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: #0a0a0a;
  min-height: 7rem;
  display: flex;
  align-items: flex-start;
}

.answer-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 2rem;
}

.btn-answer {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 0.375rem;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: #ffffff;
  color: #0a0a0a;
  -webkit-tap-highlight-color: transparent;
}

.btn-answer:hover { border-color: #2563eb; color: #2563eb; }
.btn-answer:active { transform: scale(0.97); }
.btn-answer:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.btn-answer.btn-yes:hover { background-color: #2563eb; border-color: #2563eb; color: #ffffff; }

/* State: Calculating */
#state-calculating {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 3rem 1.25rem;
  text-align: center;
}
#state-calculating:not(.hidden) {
  display: flex;
}

.calc-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 2rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.calc-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.calc-sub {
  font-size: 0.9375rem;
  color: #777;
  line-height: 1.55;
}

.calc-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: left;
  min-width: 260px;
}

.calc-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #aaa;
  transition: color 0.3s ease;
}

.calc-step.active { color: #0a0a0a; }

.calc-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e5e7eb;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.calc-step.active .calc-step-dot { background-color: #2563eb; }

/* State: Results */
#state-results {
  padding: 2.5rem 1.25rem 4rem;
}

.results-header { margin-bottom: 2.5rem; }

.results-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.results-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.results-subtitle {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.6;
}

.results-section { margin-bottom: 2.5rem; }

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Bar Chart */
.chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  width: 160px;
  flex-shrink: 0;
  line-height: 1.3;
}

.chart-bar-track {
  flex: 1;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 9999px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background-color: #2563eb;
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.chart-bar-fill.dimmed { background-color: #bfdbfe; }

.chart-score {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Trait Cards */
.trait-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trait-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.trait-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
}

.trait-rank {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.trait-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: -0.01em;
}

.trait-score-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.trait-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
}

.weakness-card .trait-rank { color: #9ca3af; }

/* Compound Blocks */
.compound-block {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.compound-block.advantage { border-left: 3px solid #2563eb; }
.compound-block.disadvantage { border-left: 3px solid #d1d5db; }

.compound-pair {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.compound-block.disadvantage .compound-pair { color: #9ca3af; }

.compound-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.compound-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
}

.compound-spacer { margin-bottom: 1rem; }

/* Retake button */
.btn-retake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #2563eb;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  border: 1.5px solid #2563eb;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-retake:hover { background-color: #2563eb; color: #ffffff; }

/* Static Pages */
.static-page {
  flex: 1;
  padding: 3rem 1.25rem 4rem;
}

.static-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #0a0a0a;
}

.static-page h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.static-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.static-page p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.static-page ul, .static-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.static-page li {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 0.375rem;
}

.static-page a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.static-page a:hover { color: #1d4ed8; }

.page-meta { font-size: 0.8125rem; color: #aaa; margin-bottom: 2rem; }
.divider { height: 1px; background-color: #e5e7eb; margin: 2rem 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid #e5e7eb; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0a0a0a;
  list-style: none;
  gap: 1rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

details[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.75;
  padding-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 480px) {
  .chart-label { width: 120px; font-size: 0.75rem; }
  .answer-row { gap: 0.5rem; }
  .trait-card { padding: 1rem 1.125rem; }
  .compound-block { padding: 1.25rem; }
}

@media (min-width: 640px) {
  .chart-label { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
