/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c-ink: #1a1a2e;
  --c-ink-light: #4a4a6a;
  --c-paper: #faf8f5;
  --c-paper-dark: #f0ece5;
  --c-accent: #6b4c9a;
  --c-accent-light: #8b6cb8;
  --c-accent-bg: #f3eef8;
  --c-warm: #c47a3a;
  --c-warm-bg: #fdf5ec;
  --c-success: #3a8a6a;
  --c-success-bg: #edf7f2;
  --c-danger: #b04040;
  --c-danger-bg: #fdf0f0;
  --c-border: #e0dbd4;
  --c-border-dark: #c8c2b8;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 32px rgba(26,26,46,0.12);
  --max-width: 1100px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Header === */
.site-header {
  background: var(--c-ink);
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.logo:hover { text-decoration: none; color: var(--c-accent-light); }
.logo svg { color: var(--c-accent-light); }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--c-ink) 0%, #2d2d5a 50%, #3a2d5e 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.85; line-height: 1.5; }
.hero-note { font-size: 0.85rem; opacity: 0.6; margin-top: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--c-accent-light); color: #fff; }
.btn-primary:hover { background: var(--c-accent); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--c-paper-dark); color: var(--c-ink); border-color: var(--c-border); }
.btn-secondary:hover { background: var(--c-border); text-decoration: none; }
.btn-small { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* === Assessment === */
.assessment-section { padding: 3rem 0; }
.section-intro { color: var(--c-ink-light); margin-bottom: 2rem; max-width: 680px; }
.assessment-form { max-width: 720px; }
.question-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.question-card:focus-within { border-color: var(--c-accent-light); box-shadow: 0 0 0 3px rgba(107,76,154,0.15); }
.question-number { font-size: 0.8rem; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.05em; }
.question-text { font-size: 1.05rem; font-weight: 600; margin: 0.25rem 0 0.75rem; line-height: 1.4; }
.answers { display: flex; flex-direction: column; gap: 0.5rem; }
.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.1s;
}
.answer-option:hover { background: var(--c-accent-bg); }
.answer-option input { margin-top: 0.2rem; accent-color: var(--c-accent); }
.answer-option.selected { background: var(--c-accent-bg); }
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* === Results === */
.results-section { padding: 3rem 0; background: var(--c-paper-dark); }
.results-inner { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.result-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.result-header { border-bottom: 2px solid var(--c-accent-bg); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.result-header h2 { font-size: 1.5rem; color: var(--c-accent); }
.result-tagline { color: var(--c-ink-light); font-size: 1rem; margin-top: 0.25rem; }
.result-block { margin-bottom: 1.25rem; }
.result-block h3 { font-size: 0.95rem; font-weight: 700; color: var(--c-ink); margin-bottom: 0.3rem; }
.result-block p { color: var(--c-ink-light); font-size: 0.95rem; }
.result-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.result-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.pressure-meter, .history-block { background: #fff; border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.pressure-meter h3, .history-block h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.meter-bar { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--c-ink-light); padding: 0.5rem 0; border-bottom: 3px solid var(--c-border); }
.meter-indicator { margin-top: 0.5rem; font-weight: 700; color: var(--c-accent); text-align: center; }
#history-list { list-style: none; font-size: 0.85rem; }
#history-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--c-border); color: var(--c-ink-light); }
#history-list li:last-child { border-bottom: none; }

/* === Archetypes Grid === */
.archetypes-section { padding: 3rem 0; }
.archetype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.archetype-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}
.archetype-card:hover { box-shadow: var(--shadow); }
.archetype-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.archetype-card .archetype-range { font-size: 0.8rem; color: var(--c-accent); font-weight: 600; margin-bottom: 0.5rem; }
.archetype-card p { font-size: 0.9rem; color: var(--c-ink-light); }

/* === Guide === */
.guide-section { padding: 3rem 0; background: var(--c-paper-dark); }
.guide-columns { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
.guide-main h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.guide-main h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.guide-main p { color: var(--c-ink-light); margin-bottom: 0.75rem; }
.guide-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.guide-note { background: #fff; border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.guide-note h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.guide-note ul { padding-left: 1.2rem; font-size: 0.9rem; color: var(--c-ink-light); }
.guide-note li { margin-bottom: 0.3rem; }
.guide-note p { font-size: 0.9rem; color: var(--c-ink-light); }

/* === FAQ === */
.faq-section { padding: 3rem 0; }
.faq-list { max-width: 720px; }
.faq-list dt { font-weight: 700; font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.3rem; }
.faq-list dd { color: var(--c-ink-light); font-size: 0.95rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-border); }

/* === Footer === */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,0.7); padding: 2.5rem 0 1.5rem; font-size: 0.9rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.7; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; opacity: 0.6; }

/* === Responsive === */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: 0.5rem; }
  .results-inner { grid-template-columns: 1fr; }
  .guide-columns { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .archetype-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .result-card { padding: 1.25rem; }
  .question-card { padding: 1rem; }
}

/* === Utilities === */
[hidden] { display: none !important; }



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