/* Layout: one 880px column; hub = three numbered test cards (16 / 9 / 5 = types or factors each model uses), profile = stacked report sections */
:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #171a1c;
  --muted: #5a6367;
  --line: #dcdfd9;
  --accent: #2b4a5a;
  --soft: #e6eded;
  --c-mbti: #2f45c8;
  --c-enn: #6b3fa0;
  --c-b5: #1f7a5a;
  --warn: #9a5b00;
  --warn-soft: #fbf0db;
  --ok: #1f7a5a;
  --font-display: "Gowun Batang", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121516; --surface: #1b1f21; --ink: #e8ecec; --muted: #9aa5a8; --line: #2b3234;
    --accent: #8fc0d4; --soft: #1f3338;
    --c-mbti: #8d9cff; --c-enn: #c4a1ef; --c-b5: #5fcfa3;
    --warn: #f0be62; --warn-soft: #362c17; --ok: #5fcfa3;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { word-break: keep-all; overflow-wrap: break-word; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 72px; display: grid; gap: 40px; }
.eyebrow { font-size: .78rem; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.sub { color: var(--muted); font-size: .92rem; max-width: 62ch; }
.topbar { display: flex; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; max-width: 880px; margin: 0 auto; padding: 16px 16px 0; font-size: .88rem; }
.topbar .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.topbar a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topbar a:hover, .topbar a[aria-current] { color: var(--accent); }

.hero { display: grid; gap: 14px; padding-top: 12px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
.hero .lede { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.promise { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.promise span { font-size: .82rem; background: var(--soft); border-radius: 999px; padding: 3px 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.mono { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--c); }
.card h2, .card h3 { font-size: 1.25rem; }
.card .meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; font-size: .9rem; color: var(--muted); display: grid; gap: 3px; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--soft); color: var(--muted); width: fit-content; }
.chip.done { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.chip.part { background: var(--warn-soft); color: var(--warn); }
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn.primary { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: var(--surface); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cardrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; }
.callout { background: var(--warn-soft); border-radius: 10px; padding: 14px 16px; font-size: .92rem; display: grid; gap: 6px; }
.callout b { color: var(--warn); }
.notes { display: grid; gap: 10px; font-size: .92rem; color: var(--muted); }
.notes b { color: var(--ink); }
footer.foot { max-width: 880px; margin: 0 auto; padding: 0 16px 56px; font-size: .8rem; color: var(--muted); display: grid; gap: 6px; }

/* profile */
.sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.sum .big { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--c); }
.sum .big small { font-size: 1.2rem; color: var(--muted); font-weight: 400; }
.line { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .86rem; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .74rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.tblwrap { overflow-x: auto; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.tag.mid { background: var(--warn-soft); color: var(--warn); }
.tag.no { background: color-mix(in srgb, #b23a3a 14%, var(--surface)); color: #b23a3a; }
@media (prefers-color-scheme: dark) { .tag.no { color: #f09a9a; background: #3a2020; } }
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line); }
.dot.on { background: var(--c); border-color: var(--c); }
.dot.off { background: transparent; border-color: var(--muted); }
.trait { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.trait .src { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toast { font-size: .85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* language switch + first-visit banner */
.topbar .lang, .sitenav .lang { margin-left: 4px; padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.langbar { max-width: 880px; margin: 12px auto 0; padding: 10px 16px; background: var(--soft); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; }
.langbar[hidden] { display: none; }
.langbar .btn { padding: 4px 14px; font-size: .85rem; }
.langbar button.btn { cursor: pointer; }
