:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-alt: #f0ece3;
  --text: #2d2a26;
  --text-muted: #5c574f;
  --accent: #6b5b95;
  --accent-soft: #e7e2f0;
  --accent-deep: #4a3f6b;
  --border: #d9d2c4;
  --success: #5b8c6b;
  --warn: #b07a3a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(45, 42, 38, 0.04), 0 8px 24px rgba(45, 42, 38, 0.06);
  --max-width: 960px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent-deep); text-decoration: none; }

.hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }

.quiz-section {
  padding: 48px 0 72px;
}
.quiz-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 0 0 8px;
  text-align: center;
}
.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.quiz-form {
  max-width: 720px;
  margin: 0 auto;
}
.quiz-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 20px;
  background: var(--surface);
}
.quiz-step legend {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0 8px;
}
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.option { display: block; cursor: pointer; }
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.option-card strong { display: block; margin-bottom: 4px; color: var(--text); }
.option input:checked + .option-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(107, 91, 149, 0.15);
}
.option input:focus-visible + .option-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.results {
  max-width: 760px;
  margin: 40px auto 0;
}
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.result-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.result-card .rank {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.result-card h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.result-card .match-reason {
  color: var(--text-muted);
  margin: 0 0 14px;
}
.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}
.result-meta dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.result-meta dd {
  margin: 0;
  font-size: 0.95rem;
}

.info-section {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.info-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 32px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.info-card p { margin: 0; color: var(--text-muted); }

.examples-section { padding: 72px 0; }
.examples-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 8px;
}
.example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.example-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.example-header h3 { margin: 0; font-size: 1.2rem; }
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.example-list {
  margin: 12px 0 0;
  padding-left: 20px;
}
.example-list li { margin-bottom: 6px; color: var(--text-muted); }

.content-section { padding: 72px 0; }
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 28px 0 12px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: var(--text); }
.content-list {
  padding-left: 20px;
  margin: 12px 0 24px;
}
.content-list li {
  margin-bottom: 10px;
  color: var(--text-muted);
}
.faq { margin: 12px 0 0; }
.faq dt {
  font-weight: 600;
  margin-top: 18px;
}
.faq dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links { display: flex; gap: 16px; }

@media (max-width: 640px) {
  .site-header .container { height: auto; padding: 12px 24px; flex-direction: column; }
  .hero { padding: 48px 0 32px; }
  .quiz-step { padding: 18px; }
  .option-card { padding: 12px; }
  .result-card { padding: 18px; }
}



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