/* =========================================================
   Kenali Diri — stylesheet
   Tanpa framework, tanpa build step.
   ========================================================= */

:root {
  --bg: #faf7f2;
  --bg-alt: #f2ebe3;
  --surface: #ffffff;
  --surface-2: #fbf7f2;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #6f665f;
  --line: #e7ded4;
  --line-strong: #d8cbbd;
  --accent: #b8410c;
  --accent-hover: #97340a;
  --accent-soft: #fbeadf;
  --sage: #3f6b52;
  --sage-soft: #e6efe9;
  --cool: #476b8a;
  --cool-soft: #e8eff5;
  --danger: #b42318;
  --shadow: 0 18px 40px -24px rgba(54, 38, 26, 0.35);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --radius: 18px;
  --radius-lg: 26px;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: #141110;
  --bg-alt: #1b1715;
  --surface: #1e1a18;
  --surface-2: #241f1c;
  --ink: #f5efe8;
  --ink-2: #d8cec4;
  --muted: #a7988a;
  --line: #332b25;
  --line-strong: #463a32;
  --accent: #f0763c;
  --accent-hover: #ff8b52;
  --accent-soft: #36211a;
  --sage: #8fb79e;
  --sage-soft: #1f2a23;
  --cool: #9cc0db;
  --cool-soft: #1c2732;
  --danger: #f97066;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

svg {
  max-width: 100%;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--ink);
}

.brand-mark {
  color: var(--accent);
  display: grid;
  place-items: center;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  appearance: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-view="test"] .header-nav,
body[data-view="test"] .header-actions .btn,
body[data-view="result"] .header-nav {
  display: none;
}

body[data-view="test"] .site-footer {
  display: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s, color 0.18s;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

[data-theme="dark"] .btn-primary {
  color: #1a0d07;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.link-btn {
  appearance: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 2px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.link-btn:hover {
  color: var(--ink);
}

.link-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.link-btn[disabled]:hover {
  color: var(--muted);
}

/* ---------- Landing ---------- */

.hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink-2);
  max-width: 54ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero-meta span:first-child::before {
  display: none;
}

.preview-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  transform: translate(8px, 8px);
  z-index: -1;
  background: var(--surface-2);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 22px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
}

.preview-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.preview-row .bar {
  grid-column: 1 / -1;
}

.preview-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Bars ---------- */

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #e2a078);
  transition: width 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] .bar > span {
  background: linear-gradient(90deg, var(--accent), #ffb184);
}

.bar-static > span {
  transition: none;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(44px, 6vw, 72px) 0;
  scroll-margin-top: 88px;
}

.resume-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.last-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  max-width: 60ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 26px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
  counter-reset: step;
}

.step {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.source-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.source-list a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.source-list a:hover {
  text-decoration-color: var(--accent);
}

.source-list span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.note-box {
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 18px;
}

.note-box strong {
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.stat {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  font-size: 15.5px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 72ch;
  margin: 0 0 20px;
}

/* ---------- Test ---------- */

.test {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 0 42px;
}

.test-top {
  margin-bottom: clamp(20px, 4vw, 34px);
}

.progress {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.test-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.test-body {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-card {
  width: min(780px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.q-kicker {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 14px;
}

.q-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.24;
  margin: 0 0 8px;
  outline: none;
}

.q-text:focus,
.q-text:focus-visible {
  outline: none;
}

.q-en {
  display: none;
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 4px;
}

body.show-en .q-en {
  display: block;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: clamp(22px, 4vw, 32px);
}

.scale-btn {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  min-height: 66px;
  padding: 8px 4px;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.scale-btn .n {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.scale-btn .s {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.scale-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.scale-btn:active {
  transform: scale(0.97);
}

.scale-btn[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scale-btn[aria-checked="true"] .s {
  color: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .scale-btn[aria-checked="true"] {
  color: #1a0d07;
}

[data-theme="dark"] .scale-btn[aria-checked="true"] .s {
  color: rgba(26, 13, 7, 0.7);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

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

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

kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Result ---------- */

.result {
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
}

.result-hero {
  padding: clamp(22px, 4vw, 40px);
}

.result-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 10px;
}

.result-sub {
  color: var(--ink-2);
  max-width: 68ch;
  font-size: 15px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 30px);
}

.radar {
  width: 100%;
  height: auto;
}

.radar-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.radar-axis {
  stroke: var(--line);
  stroke-width: 1;
}

.radar-data {
  fill: color-mix(in srgb, var(--accent) 20%, transparent);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.radar-dot {
  fill: var(--accent);
}

.radar-label {
  fill: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
}

.score-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
}

.score-row {
  display: grid;
  gap: 6px;
}

.score-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.score-name {
  font-weight: 600;
}

.score-num {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-high {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-low {
  background: var(--cool-soft);
  color: var(--cool);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.method-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 74ch;
}

.dim-section {
  margin-top: clamp(34px, 5vw, 52px);
}

.dim-section > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 16px;
}

.dim-grid {
  display: grid;
  gap: 12px;
}

.dim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.dim-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
}

.dim-card summary::-webkit-details-marker {
  display: none;
}

.dim-card summary:hover {
  background: var(--surface-2);
}

.dim-title {
  font-weight: 700;
  font-size: 15.5px;
}

.dim-en {
  font-size: 12px;
  color: var(--muted);
  display: none;
}

.dim-score {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
}

.chev {
  color: var(--muted);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.2s;
}

.dim-card[open] .chev {
  transform: rotate(180deg);
}

.dim-body {
  padding: 0 22px 24px;
}

.dim-body h4 {
  font-size: 1.1rem;
  margin: 4px 0 6px;
}

.dim-body .body-text {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0 0 18px;
  max-width: 74ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 18px;
}

.two-col h5 {
  margin: 0 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

ul.tick,
ul.grow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
}

ul.tick li,
ul.grow li {
  padding-left: 19px;
  position: relative;
}

ul.tick li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

ul.grow li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cool);
  font-weight: 700;
}

.tips-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}

.tips-block h5 {
  margin: 0 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.tips-block ol {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.tips-block ol li {
  margin-bottom: 4px;
}

.career-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

ul.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
}

ul.chips li {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  padding: 15px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 24px;
}

.callout strong {
  color: var(--ink);
}

.result-footer {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Empty / error ---------- */

.empty {
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 110px) 0;
  text-align: center;
}

.empty h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.empty p {
  color: var(--muted);
}

.empty .btn {
  margin-top: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: clamp(32px, 5vw, 48px) 0;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px 32px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
  max-width: 44ch;
  margin: 0;
}

.footer-heading {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-2);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  max-width: 90ch;
}

/* ---------- Dialog & toast ---------- */

.dialog {
  border: none;
  border-radius: 20px;
  padding: 26px;
  width: min(440px, calc(100% - 40px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(18, 14, 12, 0.55);
  backdrop-filter: blur(2px);
}

.dialog h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.dialog p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Motion ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-enter {
  animation: fade-up 0.4s ease both;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 2;
    max-width: 460px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .result-grid .radar {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scale-btn .s {
    display: none;
  }

  .scale-btn {
    min-height: 56px;
  }

  .hint {
    display: none;
  }

  .test-nav {
    justify-content: space-between;
  }

  .dim-card summary {
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .dim-body {
    padding: 0 18px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 32px);
  }

  .scale {
    gap: 6px;
  }

  .scale-btn {
    min-height: 52px;
    border-radius: 12px;
  }

  .question-card {
    padding: 22px 16px;
  }

  .scale-btn .n {
    font-size: 17px;
  }

  .result-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .bar > span {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .result-actions,
  .result-footer,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .dim-card {
    break-inside: avoid;
  }
}
