:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --surface: #fceef5;
  --ink: #321831;
  --muted: #694966;
  --line: #ead4e2;
  --primary: #be185d;
  --primary-dark: #9d174d;
  --accent: #4338ca;
  --accent-soft: #eef2ff;
  --ok: #15803d;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(50, 24, 49, 0.06);
  --shadow-lg: 0 8px 24px rgba(50, 24, 49, 0.08);
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--card);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-dark);
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}

.brand-gem {
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 0;
}
.nav-link:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Breadcrumb */
.crumb-bar {
  padding-top: 16px;
}
.crumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.crumb-sep {
  color: var(--muted);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--card);
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--card);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--ink);
}

.like-btn[aria-pressed="true"], .like-btn[data-gf-liked] {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.count-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

/* Hero & Tool Stage */
.hero-stage {
  padding-top: 24px;
  padding-bottom: 32px;
}

.hero-intro {
  margin-bottom: 16px;
}

.kicker-pill, .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 0;
}

.tool-mount {
  margin-top: 16px;
}

.engage-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share-feedback {
  font-size: 14px;
  color: var(--ok);
  font-weight: 700;
}

/* Interactive Quiz Card */
.dq-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.dq-friend-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.dq-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dq-modes {
  display: inline-flex;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius);
  gap: 4px;
}

.dq-mode-btn {
  min-height: 44px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dq-mode-btn[aria-selected="true"] {
  background: var(--primary);
  color: var(--card);
}

.dq-step-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.dq-progress-track {
  height: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.dq-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.2s ease;
}

.dq-scene-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.dq-question {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 16px;
}

.dq-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dq-opt-btn {
  text-align: left;
  min-height: 64px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dq-opt-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.dq-opt-key {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dq-nav-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dq-privacy-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Quiz Result Panel */
.dq-result-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.dq-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dq-primary-pill {
  background: var(--primary);
  color: var(--card);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius);
}

.dq-wing-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius);
}

.dq-res-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.dq-res-tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.dq-examples-line {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.visual-showcase {
  margin: 24px 0 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.visual-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.visual-showcase figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.dq-trait-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.dq-mini-box {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
}
.dq-mini-box strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
}
.dq-mini-box p {
  font-size: 14px;
  margin: 0;
}

.dq-radar-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.dq-radar-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.dq-bars-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dq-bar-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 12px;
}

.dq-bar-item {
  font-size: 14px;
}
.dq-bar-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}
.dq-bar-track {
  height: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.dq-bar-fill {
  height: 100%;
  background: var(--primary);
}

.dq-compat-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.dq-live-stat {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.dq-action-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.sec-block {
  padding-top: 48px;
  padding-bottom: 48px;
}

.sec-tinted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  margin-bottom: 24px;
}

.sec-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
}

/* Split Showcase */
.split-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.sample-preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sample-summary {
  color: var(--muted);
  font-size: 16px;
}

.axis-preview-list {
  margin: 16px 0 0;
}
.axis-preview-row {
  margin-bottom: 12px;
}
.axis-preview-row dt {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.axis-preview-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.axis-bar {
  flex: 1;
  height: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.axis-fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.numbered-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  counter-reset: step-counter;
}
.numbered-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 16px;
}
.numbered-steps li::before {
  content: "0" counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--card);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbered-steps li p {
  font-size: 16px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* 12 Archetypes Grid */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.arc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.arc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.arc-code {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius);
}

.arc-card h3 {
  font-size: 18px;
  margin: 0;
}

.arc-tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.arc-desc {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.arc-axes {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Prose & Articles */
.page-article {
  padding-top: 32px;
  padding-bottom: 48px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.header-cta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-note {
  font-size: 14px;
  color: var(--muted);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose table, .comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
}

.prose th, .prose td, .comp-table th, .comp-table td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th, .comp-table th {
  background: var(--surface);
  font-weight: 700;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
}

/* Related Grid */
.related-inline {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.related-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 4px;
}
.related-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.related-card:hover {
  border-color: var(--primary);
  background: var(--surface);
}

/* FAQ */
.faq-stack {
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

.faq-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.faq-q {
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}

.faq-a {
  margin-top: 12px;
  color: var(--muted);
}
.faq-a p:last-child {
  margin-bottom: 0;
}

/* Comments */
.comment-panel {
  max-width: 70ch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.field-group {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.field-group input, .field-group textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-msg {
  font-size: 14px;
  color: var(--ok);
}

.comment-stream {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.empty-comments {
  display: none;
  color: var(--muted);
  font-size: 14px;
}
.comment-stream[data-gf-empty] .empty-comments {
  display: block;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comment-item[data-gf-owner] {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.owner-pill {
  background: var(--primary);
  color: var(--card);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius);
}
.comment-body {
  margin: 4px 0 8px;
}
.text-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  min-height: 44px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.comment-replies {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-top: 48px;
  padding-bottom: 32px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-desc, .footer-contact {
  font-size: 14px;
  color: var(--muted);
}

.footer-heading {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 8px;
}
.footer-list a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.footer-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.disclaimer, .copyright {
  margin-bottom: 8px;
}

/* Mobile Responsive (Zero Horizontal Overflow) */
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open {
    display: flex;
  }
  .dq-card {
    padding: 16px;
  }
  .dq-options,
  .dq-result-grid,
  .dq-trait-cards,
  .dq-bar-list,
  .split-showcase,
  .archetype-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .dq-action-bar .btn-primary,
  .dq-action-bar .btn-secondary {
    width: 100%;
  }
}