:root {
  --ink: #1a1410;
  --ink-2: #3d3530;
  --ink-3: #5a5045;
  --ink-soft: #3d3530;
  --ink-muted: #7a6e68;
  --paper: #f7f3ee;
  --paper-warm: #f0ebe3;
  --paper-card: #fdfaf6;
  --bg-warm: #f5f0e8;
  --accent: #c8522a;
  --accent-soft: #e8b49a;
  --accent-pale: #f5e8e1;
  --gold: #b8943f;
  --gold-pale: #f5edda;
  --green: #3a6b4a;
  --green-pale: #e2ede6;
  --border: #e0d8cf;
  --border-s: #e8e2da;
  --shadow: 0 2px 20px rgba(26,20,16,0.08);
  --shadow-card: 0 4px 40px rgba(26,20,16,0.12);
  --r: 12px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

/* ─── SCREENS ─── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ─── LANDING ─── */
#screen-landing {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.landing-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(200,82,42,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(184,148,63,0.06) 0%, transparent 70%);
}

.landing-content {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 0;
}

.brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }

.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 40px; }
  .hero-visual { display: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 400px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,82,42,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.type-wheel {
  width: 320px;
  height: 320px;
  position: relative;
}

.type-wheel svg { width: 100%; height: 100%; }

/* Assessment Cards */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* ── NARA-style test grid ── */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 80px;
}
@media(max-width:480px){.tests-grid{grid-template-columns:1fr}}

/* Modal overlay */
.test-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,20,16,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.test-modal-overlay.open { display: flex; }

.test-modal {
  background: var(--paper-card);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 -8px 48px rgba(26,20,16,.18);
  animation: slideUp .28s ease;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-handle {
  width: 36px; height: 4px; border-radius: 100px;
  background: var(--border); margin: 0 auto 24px;
}
.modal-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
}
.modal-icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--paper-warm);
}
.modal-title { font-family: 'Instrument Serif', serif; font-size: 1.35rem; color: var(--ink); margin-bottom: 2px; }
.modal-meta  { font-size: .75rem; color: var(--ink-muted); }
.modal-desc  { font-size: .9rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 20px; }

.modal-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 20px;
}
.modal-stat {
  background: var(--paper-warm); border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.modal-stat-val { font-family: 'Instrument Serif', serif; font-size: 1.3rem; color: var(--ink); line-height: 1; margin-bottom: 3px; }
.modal-stat-label { font-size: .68rem; color: var(--ink-muted); }

.modal-learn-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.modal-learn-list { list-style: none; margin-bottom: 20px; }
.modal-learn-list li {
  font-size: .88rem; line-height: 1.6; color: var(--ink-soft);
  padding: 4px 0 4px 18px; position: relative;
}
.modal-learn-list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

.modal-disclaimer {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--paper-warm); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 20px;
  font-size: .8rem; line-height: 1.6; color: var(--ink-muted);
}

.modal-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.modal-price-wrap .modal-price { font-family: 'Instrument Serif', serif; font-size: 1.5rem; color: var(--ink); }
.modal-price-wrap .modal-price-note { font-size: .72rem; color: var(--ink-muted); margin-top: 1px; }

.btn-modal-start {
  flex: 1; background: var(--green); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 600;
  padding: 14px 20px; border-radius: 100px; border: none; cursor: pointer;
  transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-modal-start:hover { background: #2a5a3a; transform: translateY(-1px); }

/* Test grid cards (NARA-style) */
.test-card {
  background: var(--paper-card);
  border: .5px solid var(--border);
  border-radius: 20px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
  box-shadow: 0 2px 8px rgba(26,20,16,.04);
}
.test-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,20,16,.08); }
.test-card.coming-soon { opacity: 0.6; cursor: default; }
.test-card.coming-soon:hover { transform: none; box-shadow: 0 2px 8px rgba(26,20,16,.04); }

.tc-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
  background: var(--paper-warm);
}
.tc-title { font-family: 'Instrument Serif', serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 3px; font-weight: 400; }
.tc-sub   { font-size: .75rem; color: var(--ink-muted); margin-bottom: 10px; line-height: 1.4; }
.tc-meta  { font-size: .72rem; color: var(--ink-muted); display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--border-soft, #edeae4); }
.tc-q     { display: flex; align-items: center; gap: 4px; }
.tc-price { font-size: .82rem; font-weight: 600; color: var(--green); }
.tc-price.free { color: var(--ink-muted); font-weight: 400; }

.tc-icon.ic-accent { background: var(--accent-pale); color: var(--accent); }
.tc-icon.ic-green  { background: var(--green-pale);  color: var(--green);  }
.modal-icon.ic-accent { background: var(--accent-pale); color: var(--accent); }
.modal-icon.ic-green  { background: var(--green-pale);  color: var(--green);  }

/* ─── DISC 4-point scale ─── */

/* ─── DISC result: modifier badge ─── */
.disc-modifier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75);
}

/* ─── DISC motivators/drains grid ─── */
.disc-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 560px) { .disc-split-grid { grid-template-columns: 1fr; } }

/* ─── DISC dev list ─── */
.disc-dev-item { padding: 8px 0; font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--border); }
.disc-dev-item:last-child { border-bottom: none; }
.disc-dev-arrow { font-weight: 700; margin-top: 1px; flex-shrink: 0; }

/* ─── DISC expanded motivator/drain item ─── */
.disc-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.disc-item:last-child { border-bottom: none; padding-bottom: 0; }
.disc-item-dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.disc-item-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.4; }
.disc-item-desc { font-size: 0.84rem; line-height: 1.68; color: var(--ink-muted); }

/* ─── DISC shareable quote card (image-based) ─── */
.disc-sq-wrap { margin-bottom: 24px; }
.disc-sq-card { border-radius: var(--r-lg); padding: 40px 36px; text-align: left; position: relative; overflow: hidden; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; }
.disc-sq-card-quote { font-family: 'Instrument Serif', serif; font-size: 1.15rem; font-style: italic; line-height: 1.7; color: rgba(255,255,255,0.88); position: relative; z-index: 1; margin: 0 0 28px; }
.disc-sq-card-mark { font-size: 7rem; line-height: 0; opacity: 0.15; font-family: 'Instrument Serif', serif; position: absolute; top: 24px; left: 24px; color: white; }
.disc-sq-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.disc-sq-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 100px; padding: 9px 20px; cursor: pointer; color: rgba(255,255,255,0.75); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.disc-sq-btn:hover { background: rgba(255,255,255,0.18); }
.disc-sq-btn.sq-loading { opacity: 0.6; pointer-events: none; }

/* ─── DISC edu accordion ─── */
.disc-edu-block { margin-bottom: 24px; }
.disc-edu-title { font-family: 'Instrument Serif', serif; font-size: 1.35rem; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.disc-edu-subtitle { font-size: 0.84rem; line-height: 1.75; color: var(--ink-muted); margin-bottom: 20px; }
.disc-edu-divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.disc-edu-accordion { display: flex; flex-direction: column; gap: 8px; }
.disc-edu-item { background: var(--paper-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: box-shadow 0.2s; }
.disc-edu-item.open { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.disc-edu-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: none; border: none; cursor: pointer; text-align: left; font-family: 'DM Sans', sans-serif; transition: background 0.15s; }
.disc-edu-btn:hover { background: rgba(0,0,0,.02); }
.disc-edu-btn-inner { display: flex; align-items: center; gap: 12px; }
.disc-edu-num { font-family: 'Instrument Serif', serif; font-size: 12px; font-style: italic; min-width: 22px; opacity: 0.5; flex-shrink: 0; }
.disc-edu-item-title { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.disc-edu-icon { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: transform 0.22s, border-color 0.15s, background 0.15s; }
.disc-edu-item.open .disc-edu-icon { transform: rotate(45deg); }
.disc-edu-icon svg { width: 10px; height: 10px; color: var(--ink-muted); }
.disc-edu-body { display: none; padding: 0 20px 20px; }
.disc-edu-item.open .disc-edu-body { display: block; }
.disc-edu-body p { font-size: 14px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 12px; }
.disc-edu-body p:last-child { margin-bottom: 0; }
.disc-edu-body strong { font-weight: 600; color: var(--ink); }
.disc-edu-body ul { padding: 0; list-style: none; margin: 10px 0 14px; }
.disc-edu-body ul li { font-size: 14px; line-height: 1.7; color: var(--ink-soft); padding: 3px 0 3px 20px; position: relative; }
.disc-edu-body ul li::before { content: '—'; position: absolute; left: 0; font-size: 12px; top: 5px; }
.disc-edu-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
@media (max-width: 500px) { .disc-edu-two-col { grid-template-columns: 1fr; } }
.disc-edu-col { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.disc-edu-col.yes { background: rgba(39,174,96,0.07); }
.disc-edu-col.no { background: rgba(196,123,90,0.07); }
.disc-edu-col-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-muted); }
.disc-edu-col li { font-size: 13px; line-height: 1.65; color: var(--ink-soft); padding: 2px 0 2px 16px; position: relative; list-style: none; }
.disc-edu-col li::before { content: '·'; position: absolute; left: 0; font-size: 16px; top: -1px; color: var(--ink-muted); }

.card-title { font-family: 'Instrument Serif', serif; font-size: 1.4rem; margin-bottom: 6px; }
.card-sub { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 16px; }
.card-meta { font-size: 0.8rem; color: var(--ink-muted); display: flex; align-items: center; gap: 16px; }
.card-meta span { display: flex; align-items: center; gap: 5px; }

/* ─── TEST SCREEN ─── */
#screen-test {
  background: var(--paper);
}

.test-header {
  background: var(--paper-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-header .brand { font-size: 1.1rem; }

.progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

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

.progress-text {
  font-size: 0.8rem;
  color: var(--ink-muted);
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
}

.btn-back {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.btn-back:hover { color: var(--ink); }

/* Question Area */
.question-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.q-layer-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.4s 0.1s forwards;
}

.q-number {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.4s 0.15s forwards;
}

.q-text {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.4s 0.2s forwards;
}

/* Likert Scale */
.likert-wrap {
  opacity: 0;
  animation: fadeUp 0.4s 0.3s forwards;
}

.likert-labels { display: none; }

.likert-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
}

.likert-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--paper-card);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  transition: all 0.18s;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

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

.likert-btn.selected {
  border-color: var(--accent);
  background: var(--accent-pale);
  color: var(--accent);
  font-weight: 500;
}

.likert-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-s);
  background: var(--paper-card);
  flex-shrink: 0;
  transition: all 0.18s;
}

.likert-btn:hover .likert-dot { border-color: var(--accent-soft); }

.likert-btn.selected .likert-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--paper-card);
}

.likert-label { font-size: 0.9rem; }

/* Adaptive Questions (Force Choice) */
.adaptive-notice {
  background: var(--gold-pale);
  border: 1px solid rgba(184,148,63,0.3);
  border-radius: var(--r);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.4s 0.05s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.force-choice {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.4s 0.3s forwards;
}

.choice-btn {
  background: var(--paper-card);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  transition: all 0.18s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.choice-btn .choice-label {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-muted);
  transition: all 0.18s;
  margin-top: 2px;
}

.choice-btn:hover { border-color: var(--accent); }
.choice-btn:hover .choice-label { background: var(--accent); border-color: var(--accent); color: white; }

.choice-btn.selected {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.choice-btn.selected .choice-label { background: var(--accent); border-color: var(--accent); color: white; }

/* Navigation Buttons */
.q-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.4s 0.35s forwards;
}

.btn-next {
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-next:hover:not(:disabled) { background: var(--accent); }
.btn-next:disabled { opacity: 0.35; cursor: default; }

/* Processing Screen */
/* processing screen - see override below */

.processing-content { text-align: center; }

.spinner-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  position: relative;
}

.spinner-wrap svg { animation: spinSvg 2s linear infinite; }
@keyframes spinSvg { to { transform: rotate(360deg); } }

.processing-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.processing-sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ─── RESULT SCREEN ─── */
#screen-result {
  background: var(--paper);
}

.result-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-hero::before {
  display: none;
}

.result-hero-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}

.result-confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.conf-high { background: rgba(58,107,74,0.3); color: #6abf7d; }
.conf-medium { background: rgba(184,148,63,0.3); color: #e0be6a; }
.conf-low { background: rgba(200,82,42,0.3); color: #f0a080; }

.result-type-code {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 8px;
  line-height: 1;
}

.result-type-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 24px;
}

.result-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── SA Result Cards ──────────────────────────── */
.result-section {
  background: var(--paper-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(26,20,16,.06);
}

/* SA Confidence badge */
.conf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.conf-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.conf-badge.conf-high   { background: rgba(58,107,74,.18);  color: #2d7a4a; }
.conf-badge.conf-medium { background: rgba(184,148,63,.18); color: #8a6c20; }
.conf-badge.conf-low    { background: rgba(200,82,42,.18);  color: #b84a28; }

/* ── SA Result: Hero ───────────────────────────────────────────────── */
.sa-result .result-hero {
  padding: 52px 24px 64px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.sa-result .result-hero::after {
  content: '';
  display: block;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
}
.sa-result .result-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sa-hero-brand {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sa-hero-role {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.sa-hero-formula {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sa-hero-greeting {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.sa-hero-desc {
  font-size: .96rem;
  line-height: 1.78;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0;
}
/* SA section label (numbered, like MBTI) */
.sa-sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}
.sa-sec-num {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.sa-sec-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.sa-sec-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* SA quote card (like MBTI highlight-card) */
.sa-quote-card {
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.sa-quote-card-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.sa-quote-card p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: .96rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.sa-quote-card .sa-qc-sub {
  font-size: .86rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0;
}
.sa-quote-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
}
.sa-quote-share:hover { color: var(--ink); border-color: var(--ink-muted); }
/* SA memahami section */
.sa-memahami-card {
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 8px;
}

/* SA Shareable Quote card — MBTI style */
.sa-sq-card {
  border-radius: 16px;
  padding: 28px 24px 20px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.sa-sq-card::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
}
.sa-sq-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  opacity: .2;
  color: #fff;
}
.sa-sq-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: .96rem;
  line-height: 1.72;
  color: rgba(255,255,255,.9);
  margin: 0;
  position: relative;
}
.sa-sq-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.sa-sq-type {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sa-sq-brand {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}
.sa-sq-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}
.sa-sq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.sa-sq-btn:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.sa-sq-btn.primary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.75); }
.sa-sq-btn.loading { opacity: .45; pointer-events: none; }
/* SA light quote card (secondary quotes) */
.sa-sq-light {
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 8px;
}
.sa-sq-light-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: .9rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.sa-sq-light-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}
.sa-sq-light-btn:hover { border-color: var(--ink-muted); color: var(--ink); }

/* SA Accordion (Memahami section) */
.sa-edu-accordion { display: flex; flex-direction: column; gap: 8px; }
.sa-edu-item {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.sa-edu-item.open { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.sa-edu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .15s;
}
.sa-edu-btn:hover { background: rgba(0,0,0,.02); }
.sa-edu-btn-inner { display: flex; align-items: center; gap: 12px; }
.sa-edu-num {
  font-size: .68rem;
  font-style: italic;
  min-width: 20px;
  opacity: .4;
  flex-shrink: 0;
  font-family: 'Instrument Serif', serif;
}
.sa-edu-item-title { font-size: .88rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.sa-edu-icon {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  color: var(--ink-4);
  transition: transform .22s, border-color .15s;
  flex-shrink: 0;
}
.sa-edu-item.open .sa-edu-icon { transform: rotate(45deg); }
.sa-edu-body { display: none; padding: 0 20px 20px; }
.sa-edu-item.open .sa-edu-body { display: block; }
.sa-edu-body p { font-size: .86rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 10px; }
.sa-edu-body p:last-child { margin-bottom: 0; }
.sa-edu-body strong { font-weight: 600; color: var(--ink); }

/* Result Body */
.result-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.result-adjacent {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.result-adjacent-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-right: 4px;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* Dimension Bars */
/* ─── DISC dimension card grid ─── */
.dim-section {
  margin-bottom: 24px;
}

.dim-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dim-section-title::before { content: '05'; color: var(--ink-muted); opacity: 0.5; font-style: italic; font-family: 'Instrument Serif', serif; font-size: 0.85rem; }
.dim-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.dim-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .dim-cards { grid-template-columns: repeat(2, 1fr); }
}

.dim-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.dim-card.primary {
  background: #2a1f1a;
  border-color: transparent;
}
.dim-card-rank {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.dim-card.primary .dim-card-rank { color: rgba(255,255,255,0.4); }
.dim-card-icon { font-size: 1.3rem; line-height: 1; margin-bottom: 4px; }
.dim-card-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dim-card.primary .dim-card-name { color: rgba(255,255,255,0.75); }
.dim-card-score {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 400;
  margin-top: 2px;
}
.dim-card.primary .dim-card-score { color: white; }
.dim-card-bar {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 6px;
}
.dim-card.primary .dim-card-bar { background: rgba(255,255,255,0.12); }
.dim-card-bar-fill {
  height: 100%;
  border-radius: 100px;
}

/* Narrative */
.narrative-block {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  margin-bottom: 24px;
}

.riasec-env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 559px) {
  .riasec-env-grid { grid-template-columns: 1fr; }
}

.narrative-block h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: var(--ink);
}

.narrative-block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.narrative-block p:last-child { margin-bottom: 0; }

.narrative-block em {
  font-style: italic;
  color: var(--accent);
}

/* Strength / Challenge chips */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 560px) { .traits-grid { grid-template-columns: 1fr; } }

.traits-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}

.traits-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.traits-card.strengths h3 { color: var(--green); }
.traits-card.challenges h3 { color: var(--accent); }

.trait-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}
.trait-item:last-child { margin-bottom: 0; }

.trait-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  margin-top: 6px;
}
.strengths .trait-dot { background: var(--green); }
.challenges .trait-dot { background: var(--accent); }

/* CTA Section */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: 36px;
  text-align: center;
  margin-bottom: 32px;
}

.cta-section h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 0.9rem;
  color: rgba(247,243,238,0.65);
  margin-bottom: 24px;
}

.btn-retake {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-retake:hover { background: rgba(255,255,255,0.18); }


/* ─── SHARE QUOTE CARD ─── */
.share-quote-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 24px 24px 16px;
  margin: 24px 0;
  position: relative;
}
.share-quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 8px;
  left: 18px;
}
.share-quote-text {
  font-family: 'Instrument Serif', serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 16px;
  padding-left: 8px;
}
.share-quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.share-quote-source {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.share-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.share-quote-btn:hover { border-color: var(--accent); }
.share-quote-btn.copied { color: var(--green); background: var(--green-pale); }

/* ─── LOVE TIP CARDS ─── */
.love-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .love-tips-grid { grid-template-columns: 1fr; }
}
.love-tip-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.love-tip-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.love-tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.love-tip-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.6;
}
.love-tip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.love-tip-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
  margin: 0;
}
.love-tip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.love-tip-source {
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ─── SECTION GROUP DIVIDERS ─── */
.section-group-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-group-divider::before,
.section-group-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ─── NARRATIVE BLOCK VARIANTS ─── */
.narrative-block--warm {
  background: var(--paper-warm);
}
.narrative-block--inverted {
  color: var(--paper);
}
.narrative-block--inverted h2 { color: var(--paper); }
.narrative-block--inverted p  { color: rgba(247,243,238,0.75); }

/* ─── TRAITS CARDS COLORED ─── */
.traits-card.strengths {
  background: var(--green-pale);
  border-color: rgba(58,107,74,0.2);
}
.traits-card.challenges {
  background: var(--accent-pale);
  border-color: rgba(200,82,42,0.18);
}

/* ─── EXPLAIN ITEMS ─── */
.explain-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  align-items: flex-start;
}
.explain-item:last-child { border-bottom: none; }
.explain-item-num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.6;
  flex-shrink: 0;
  min-width: 22px;
  margin-top: 3px;
}

/* ─── QUICK TIP ITEMS ─── */
.quick-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  line-height: 1.65;
}
.quick-tip-item:last-child { border-bottom: none; }
.quick-tip-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── DIM BAR HIGHLIGHT ─── */
.dim-row--primary .dim-name {
  font-weight: 600;
  color: var(--ink);
}
.dim-row--primary .dim-bar-bg {
  background: var(--paper-warm);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── BOTTOM NAV (mobile only) ─── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--paper-card);
  border-top: 1px solid var(--border);
  z-index: 300;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border: none; background: transparent; cursor: pointer; padding: 0;
  color: var(--ink-muted); transition: color .15s;
}
.bnav-icon svg { display: block; width: 22px; height: 22px; }
.bnav-label { font-size: 10px; font-weight: 500; font-family: 'DM Sans', sans-serif; line-height: 1; }
.bnav-item.active { color: var(--accent); }
.bnav-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-top: 2px; opacity: 0; transition: opacity .15s; }
.bnav-item.active .bnav-dot { opacity: 1; }

@media (max-width: 640px) {
  .bottom-nav { display: flex; }
  .bottom-nav.bnav-hidden { display: none !important; }
  #screen-landing.active,
  #screen-result.active { padding-bottom: 68px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .likert-options { gap: 6px; }
}

/* ─── NAME SCREEN ─── */
#screen-name {
  min-height: 100vh;
  background: var(--paper);
}
#screen-name.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.name-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.name-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.name-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.name-sub {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}
.name-input {
  width: 100%;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  margin-bottom: 12px;
}
.name-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,82,42,0.1);
}
.name-input::placeholder { color: var(--ink-muted); opacity: 0.6; }
.name-skip {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 8px auto 0;
}
.name-skip:hover { color: var(--ink); }
/* ─── WELCOME BLOCK ─── */
.welcome-block {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.welcome-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.welcome-greeting {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.welcome-greeting em { font-style: italic; color: var(--accent); }
.welcome-body { font-size: 0.9rem; line-height: 1.8; color: var(--ink-soft); }
.welcome-body p { margin-bottom: 12px; }
.welcome-body p:last-child { margin-bottom: 0; }
.welcome-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--paper-warm);
  padding: 4px 12px;
  border-radius: 100px;
  margin: 2px 0 12px;
}
/* ─── PROCESSING FIX ─── */
#screen-processing { background: var(--paper); }
#screen-processing.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}


/* ─── MBTI RESULT REDESIGN (scoped to .mbti-result to avoid bleeding into LL/DISC/BF5) ─── */
.mbti-result .result-hero { padding:72px 24px 64px; position:relative; overflow:hidden; text-align:left; }
.mbti-result .result-hero::after { content:''; display:block; height:56px; background:linear-gradient(to bottom,transparent,var(--paper)); position:absolute; bottom:0;left:0;right:0; z-index:2; pointer-events:none; }
.mbti-result .result-hero .result-hero-inner { max-width:720px; margin:0 auto; position:relative; z-index:1; }
.result-meta { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.result-brand-badge { font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.35); }
.result-temperament { font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.mbti-result .result-type-code { font-family:'Instrument Serif',serif; font-size:clamp(4rem,12vw,7rem); font-weight:400; line-height:1; letter-spacing:-.02em; margin-bottom:8px; }
.mbti-result .result-type-name { font-family:'Instrument Serif',serif; font-size:clamp(1.1rem,2.5vw,1.5rem); font-style:italic; color:rgba(255,255,255,.55); margin-bottom:20px; }
.mbti-result .result-tagline { font-size:clamp(.92rem,1.5vw,1rem); line-height:1.75; color:rgba(255,255,255,.55); max-width:560px; }
.conf-pill { display:inline-flex; align-items:center; gap:6px; font-size:.68rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; padding:5px 12px; border-radius:100px; margin-bottom:20px; }
.conf-pill::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.conf-high { background:rgba(74,140,111,.25); color:#7ABFA0; }
.conf-medium { background:rgba(184,148,63,.25); color:#D4A855; }
.conf-low { background:rgba(200,90,42,.25); color:#E08060; }

.result-snapshot { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:16px; overflow:hidden; margin-bottom:40px; }
@media(max-width:600px){ .result-snapshot { grid-template-columns:1fr 1fr; } }
.snap-item { background:var(--paper); padding:18px 20px; }
.snap-label { font-size:.65rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:6px; }
.snap-val { font-family:'Instrument Serif',serif; font-size:1.15rem; font-weight:400; color:var(--ink); line-height:1.3; }
.adjacent-chips { display:flex; gap:6px; flex-wrap:wrap; }
.type-adj-chip { font-size:.72rem; font-weight:600; padding:3px 8px; border-radius:4px; background:var(--paper-card); border:1px solid var(--border); color:var(--ink-soft); font-family:'DM Sans',sans-serif; }

.section-title-main { font-family:'Instrument Serif',serif; font-size:clamp(1.2rem,2.5vw,1.5rem); font-weight:400; color:var(--ink); margin-bottom:8px; }
.section-subtitle { font-size:.88rem; color:var(--ink-muted); margin-bottom:24px; line-height:1.65; }
.dim-top-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:20px; }
@media(max-width:580px){ .dim-top-grid { grid-template-columns:1fr; } }
.dim-top-card { background:var(--paper-card); border:1px solid var(--border); border-radius:12px; padding:20px; }
.dim-top-rank { font-size:.65rem; font-weight:700; letter-spacing:.1em; margin-bottom:8px; }
.dim-top-name { font-size:.95rem; font-weight:500; color:var(--ink); margin-bottom:14px; line-height:1.3; }
.dim-top-bar { height:5px; background:var(--border); border-radius:3px; margin-bottom:8px; overflow:hidden; }
.dim-top-fill { height:100%; border-radius:3px; }
.dim-top-score { font-size:.8rem; font-weight:600; color:var(--ink-muted); }
.dim-rest-list { display:flex; flex-direction:column; gap:10px; }
.dim-rest-row { display:grid; grid-template-columns:140px 1fr 36px; align-items:center; gap:12px; }
@media(max-width:400px){ .dim-rest-row { grid-template-columns:110px 1fr 30px; } }
.dim-rest-name { font-size:.83rem; color:var(--ink-soft); }
.dim-rest-track { height:4px; background:#EDEAE4; border-radius:2px; overflow:hidden; }
.dim-rest-fill { height:100%; border-radius:2px; background:var(--border); }
.dim-rest-score { font-size:.75rem; color:var(--ink-muted); text-align:right; }

/* ─── MBTI RESULT STYLES ─── */

/* Narrative block overrides - scoped to MBTI only */
.mbti-result .narrative-block { border-radius:16px; padding:36px; margin-bottom:16px; }
.mbti-result .narrative-block h2 { font-size:1.25rem; font-weight:400; margin:0 0 18px; line-height:1.35; }
.mbti-result .narrative-block p { font-size:.93rem; line-height:1.95; margin-bottom:1.1em; }
.mbti-result .narrative-block p.mbti-lead { font-size:1.05rem; line-height:1.85; color:var(--ink); font-family:'Instrument Serif',serif; margin-bottom:1.3em; }
.mbti-result .narrative-block p:last-child { margin-bottom:0; }

/* Section color variants */
.narrative-block--warm    { background:var(--paper-warm); }
.narrative-block--energy  { background:color-mix(in srgb,var(--mbti-accent,var(--accent)) 6%,var(--paper-card)); border-color:color-mix(in srgb,var(--mbti-accent,var(--accent)) 14%,var(--border)); }
.narrative-block--challenge { background:color-mix(in srgb,#B87830 5%,var(--paper-card)); border-color:color-mix(in srgb,#B87830 12%,var(--border)); }
.narrative-block--growth  { background:color-mix(in srgb,#4A8C6F 5%,var(--paper-card)); border-color:color-mix(in srgb,#4A8C6F 12%,var(--border)); }
.narrative-block--action  { background:color-mix(in srgb,var(--mbti-accent,var(--accent)) 9%,var(--paper-card)); border:2px solid color-mix(in srgb,var(--mbti-accent,var(--accent)) 25%,var(--border)); }

/* Group wrapper - replaces line dividers */
.mbti-group { margin-top: 52px; }
.mbti-group-label { font-size:.62rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--mbti-accent,var(--accent)); margin-bottom:20px; display:flex; align-items:center; gap:12px; }
.mbti-group-label::after { content:''; flex:1; height:1px; background:color-mix(in srgb,var(--mbti-accent,var(--accent)) 18%,var(--border)); }

/* Hero traits */
.result-hero-traits { margin-top:24px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); }
.result-hero-traits-label { font-size:.63rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.4); margin-bottom:14px; }
.result-hero-trait { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; }
.result-hero-trait:last-child { margin-bottom:0; }
.result-hero-trait-check { width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); flex-shrink:0; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.result-hero-trait-text { font-size:.9rem; line-height:1.5; color:rgba(255,255,255,.88); }

/* Strength chips grid */
.mbti-strength-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 4px; }
@media(max-width:520px){ .mbti-strength-grid { grid-template-columns:1fr; } }
.mbti-strength-chip { background:color-mix(in srgb,var(--mbti-accent,var(--accent)) 7%,var(--paper-card)); border:1px solid color-mix(in srgb,var(--mbti-accent,var(--accent)) 18%,var(--border)); border-radius:12px; padding:14px 16px; font-size:.875rem; line-height:1.45; color:var(--ink); font-weight:500; }

/* Stanza block */
.mbti-stanza { display:flex; flex-direction:column; gap:5px; margin:18px 0 22px; padding:20px 24px; border-left:3px solid var(--mbti-accent,var(--accent)); background:color-mix(in srgb,var(--mbti-accent,var(--accent)) 5%,transparent); border-radius:0 12px 12px 0; }
.mbti-stanza span { font-family:'Instrument Serif',serif; font-size:1.05rem; font-style:italic; line-height:1.6; color:var(--ink); }

.mbti-sub-heading { font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mbti-accent,var(--accent)); margin:28px 0 12px; padding-top:24px; border-top:1px solid rgba(0,0,0,.06); }
.mbti-sub-heading:first-child { border-top:none; padding-top:0; margin-top:4px; }
.mbti-sub-sub-heading { font-size:.88rem; font-weight:600; color:var(--ink); margin:18px 0 8px; }
.mbti-list { margin:.4em 0 1.2em 0; padding-left:1.5em; }
.mbti-list li { font-size:.93rem; line-height:1.9; color:var(--ink-soft); margin-bottom:.65em; }
.mbti-blockquote { border-left:3px solid var(--mbti-accent,var(--accent)); padding:16px 22px; margin:22px 0; font-style:italic; color:var(--ink); font-size:.95rem; line-height:1.8; background:color-mix(in srgb,var(--mbti-accent,var(--accent)) 5%,transparent); border-radius:0 12px 12px 0; }

/* Shareable quote card */
.mbti-quote-feature { border-radius:16px; padding:36px; margin:24px 0; position:relative; overflow:hidden; background:var(--ink); }
.mbti-quote-feature::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 80% at 90% 50%,var(--mbti-accent,var(--accent)),transparent 65%); opacity:.35; }
.mbti-quote-feature-mark { font-family:'Instrument Serif',serif; font-size:5rem; line-height:.7; color:var(--mbti-accent,var(--accent)); opacity:.45; position:absolute; top:18px; left:26px; }
.mbti-quote-feature-text { font-family:'Instrument Serif',serif; font-size:1.25rem; font-style:italic; line-height:1.65; color:#fff; position:relative; padding-left:16px; margin:10px 0 22px; }
.mbti-quote-feature-footer { display:flex; align-items:center; justify-content:space-between; position:relative; }
.mbti-quote-feature-source { font-size:.63rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.42); }
.mbti-quote-feature-btn { display:inline-flex; align-items:center; gap:5px; font-size:.72rem; font-weight:600; color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:100px; padding:6px 14px; cursor:pointer; font-family:'DM Sans',sans-serif; transition:all .15s; letter-spacing:.02em; }
.mbti-quote-feature-btn:hover { background:rgba(255,255,255,.2); }

.disclaimer { font-size:.75rem; line-height:1.7; color:var(--ink-muted); text-align:center; padding:16px 0 0; border-top:1px solid var(--border); }

/* ─── BIG FIVE RESULT STYLES ─── */
.bf5-radar-wrap { display:flex; justify-content:center; padding:16px 0 8px; }
.bf5-radar-wrap svg { max-width:220px; width:100%; }
.bf5-scores-table { width:100%; border-collapse:collapse; margin-top:16px; }
.bf5-scores-table td { padding:9px 0; border-bottom:1px solid var(--border); font-size:.875rem; }
.bf5-scores-table tr:last-child td { border-bottom:none; }
.bf5-score-trait { color:var(--ink); font-weight:500; width:45%; }
.bf5-score-bar-wrap { width:35%; padding:0 12px; }
.bf5-score-bar-track { height:5px; background:var(--border); border-radius:3px; overflow:hidden; }
.bf5-score-bar-fill { height:100%; border-radius:3px; transition:width .5s; }
.bf5-score-val { color:var(--ink-muted); font-size:.8rem; text-align:right; white-space:nowrap; }
.bf5-level-pill { display:inline-block; font-size:.6rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; padding:2px 8px; border-radius:100px; margin-left:8px; }
.bf5-interaction-card { border-radius:14px; padding:22px 24px; margin-bottom:14px; border:1px solid var(--border); background:var(--paper-card); }
.bf5-interaction-name { font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--bf5-accent,#7C5CBF); margin-bottom:8px; }
.bf5-interaction-title { font-family:'Instrument Serif',serif; font-size:1.1rem; color:var(--ink); margin-bottom:10px; line-height:1.35; }
.bf5-interaction-desc { font-size:.9rem; line-height:1.85; color:var(--ink-soft); margin-bottom:14px; }
.bf5-interaction-meta { display:flex; gap:16px; flex-wrap:wrap; }
.bf5-interaction-meta-col { flex:1; min-width:120px; }
.bf5-interaction-meta-label { font-size:.63rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:6px; }
.bf5-interaction-meta-item { font-size:.82rem; color:var(--ink-soft); line-height:1.6; }
.bf5-archetype-card { border-radius:16px; padding:28px; text-align:center; margin:8px 0; }
.bf5-archetype-name { font-family:'Instrument Serif',serif; font-size:1.6rem; color:var(--ink); margin:8px 0 6px; }
.bf5-archetype-label { font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--bf5-accent,#7C5CBF); }

/* ── Big Five: New Assembly Sections ─────────────────────────── */
.bf5-core-tension { border-radius:16px; padding:28px 28px 26px; background:#1E1A2E; color:#fff; margin:8px 0 14px; position:relative; overflow:hidden; }
.bf5-core-tension::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 60% at 70% 50%,rgba(124,92,191,.25),transparent 65%); pointer-events:none; }
.bf5-core-tension-label { font-size:.6rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.45); margin-bottom:16px; position:relative; }
.bf5-core-tension-text { font-family:'Instrument Serif',serif; font-size:1.25rem; line-height:1.6; color:#fff; position:relative; }
.bf5-core-tension-text em { font-style:normal; color:rgba(255,255,255,.65); }
.bf5-tentang-block { margin:8px 0; }
.bf5-tentang-block p { font-size:.95rem; line-height:1.9; color:var(--ink-soft); margin:0 0 14px; }
.bf5-tentang-block p:last-child { margin-bottom:0; }
.bf5-blindspot-list { display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.bf5-blindspot-item { border-radius:12px; padding:16px 18px; background:color-mix(in srgb,#B87830 6%,var(--paper-card)); border:1px solid color-mix(in srgb,#B87830 18%,var(--border)); display:flex; gap:12px; align-items:flex-start; }
.bf5-blindspot-dot { width:8px; height:8px; border-radius:50%; background:#B87830; flex-shrink:0; margin-top:6px; }
.bf5-blindspot-text { font-size:.9rem; line-height:1.7; color:var(--ink-soft); }
.bf5-growth-list { list-style:none; padding:0; margin:4px 0 0; display:flex; flex-direction:column; gap:10px; }
.bf5-growth-list li { border-radius:12px; padding:16px 18px; background:color-mix(in srgb,#4A8C6F 6%,var(--paper-card)); border:1px solid color-mix(in srgb,#4A8C6F 18%,var(--border)); font-size:.9rem; line-height:1.7; color:var(--ink-soft); display:flex; gap:12px; align-items:flex-start; }
.bf5-growth-dot { width:8px; height:8px; border-radius:50%; background:#4A8C6F; flex-shrink:0; margin-top:6px; }
.bf5-reflection-block { border-radius:16px; padding:28px; border:1px solid var(--border); background:var(--paper-card); text-align:center; margin:8px 0; }
.bf5-reflection-label { font-size:.6rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--bf5-accent,#7C5CBF); margin-bottom:16px; }
.bf5-reflection-q { font-family:'Instrument Serif',serif; font-size:1.1rem; font-style:italic; line-height:1.65; color:var(--ink); margin:0; }
.bf5-share-btn { display:inline-flex; align-items:center; gap:5px; font-size:.72rem; font-weight:600; color:rgba(255,255,255,.55); background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:100px; padding:6px 14px; cursor:pointer; transition:all .15s; margin-top:18px; font-family:inherit; }
.bf5-share-btn:hover { background:rgba(255,255,255,.14); color:#fff; }
.bf5-share-btn-light { color:var(--ink-muted); background:transparent; border-color:var(--border); }
.bf5-share-btn-light:hover { border-color:var(--bf5-accent,#7C5CBF); color:var(--bf5-accent,#7C5CBF); background:transparent; }
.bf5-quote-card { border-radius:14px; padding:20px 22px; background:var(--paper-card); border:1px solid var(--border); margin-top:16px; }
.bf5-quote-card-text { font-family:'Instrument Serif',serif; font-size:1rem; font-style:italic; line-height:1.8; color:var(--ink); }
.bf5-quote-card-footer { display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); }
.bf5-quote-card-brand { font-size:.58rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-muted); }
.bf5-quote-card .bf5-share-btn-light { margin-top:0; }

/* ── MBTI Shareable Quote Cards ─────────────────────────── */
.sq-card {
  position:relative; border-radius:16px; padding:1.75rem 1.75rem 1.3rem;
  margin-bottom:12px; overflow:hidden;
}
.sq-card::after {
  content:''; position:absolute; bottom:-35px; right:-35px;
  width:120px; height:120px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.04);
}
.sq-mark {
  font-family:'Instrument Serif',serif; font-size:4rem; line-height:0;
  opacity:.2; display:block; margin-bottom:1rem;
}
.sq-text {
  font-family:'Instrument Serif',serif; font-style:italic;
  font-size:.97rem; line-height:1.78;
  color:rgba(255,255,255,.87); margin:0; position:relative;
}
.sq-footer {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:1.25rem; padding-top:.9rem;
  border-top:1px solid rgba(255,255,255,.07); position:relative;
}
.sq-type {
  font-size:10px; font-weight:700; letter-spacing:.22em;
  text-transform:uppercase;
}
.sq-brand {
  font-size:9px; font-weight:500; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.28);
}
.sq-btn-row {
  display:flex; justify-content:flex-end; gap:8px; margin-top:8px;
}
.sq-btn {
  border-radius:20px; font-size:11px; font-weight:500;
  padding:6px 13px; cursor:pointer;
  display:flex; align-items:center; gap:5px;
  font-family:inherit; letter-spacing:.02em; transition:all .15s;
}
.sq-btn-dl {
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.55);
}
.sq-btn-dl:hover { background:rgba(255,255,255,.13); color:rgba(255,255,255,.8); }
.sq-btn-sh {
  border:1px solid; /* color set inline per type */
}
.sq-btn.sq-loading { opacity:.55; pointer-events:none; }

/* ═══════════════════════════════════════════════════════
   RK RESULT DESIGN SYSTEM
   Uses CSS vars: --rk-accent, --rk-accent-mid, --rk-accent-pale, --rk-hero-bg
   Set dynamically per type on #screen-result
═══════════════════════════════════════════════════════ */

/* Hero */
.rk-hero-mode {
  background: var(--rk-hero-bg, #1A2520) !important;
  padding: 3.25rem 2rem 2.75rem !important;
  text-align: left !important;
}
.rk-hero-mode .result-hero-inner { max-width: 600px; }
.rk-hero-tag {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rk-accent-mid, #8AAAE0);
  margin-bottom: 1.1rem;
}
.rk-hero-code {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3.2rem, 10vw, 4.8rem); font-weight: 400;
  color: #fff; line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.rk-hero-name {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.rk-hero-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rk-hero-pill {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}
.rk-hero-pill-accent {
  background: var(--rk-accent-a20, rgba(91,127,191,0.2));
  border-color: var(--rk-accent-a35, rgba(91,127,191,0.35));
  color: var(--rk-accent-mid, #8AAAE0);
}

/* Snapshot */
.rk-snapshot {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0 0;
}
.rk-snap-cell { background: var(--paper-card); padding: 0.85rem 1.1rem; }
.rk-snap-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 3px;
}
.rk-snap-val { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rk-snap-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

/* Section headers */
.rk-section-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem; font-weight: 500;
  color: var(--ink);
  padding: 2.5rem 0 1.1rem;
  border-bottom: 2px solid var(--rk-accent-pale, #EEF2F8);
  margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: 10px;
}
.rk-section-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rk-accent, #5B7FBF);
  flex-shrink: 0;
}
.rk-section-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rk-accent, #5B7FBF);
  margin: 0 0 0.9rem;
}

/* Typography */
.rk-para {
  font-size: 16px; line-height: 1.95;
  color: var(--ink-soft); margin: 0 0 1.1rem 0;
}
.rk-para:last-child { margin-bottom: 0; }
.rk-lead {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem; line-height: 1.82;
  color: var(--ink); font-style: italic;
  margin: 0 0 1.4rem 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.rk-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 1.75rem 0; }

/* Staccato card - accent-pale bg, left accent border */
.rk-staccato {
  background: var(--rk-accent-pale, #EEF2F8);
  border: none;
  border-left: 3px solid var(--rk-accent, #5B7FBF);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.35rem;
  margin: 1.4rem 0;
}
.rk-staccato-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rk-accent, #5B7FBF); margin-bottom: 0.75rem;
}
.rk-staccato-item {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 15px; line-height: 1.72; color: var(--ink-soft);
}
.rk-staccato-item:last-child { border-bottom: none; padding-bottom: 0; }
.rk-staccato-item:first-of-type { padding-top: 0; }
.rk-sdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rk-accent, #5B7FBF);
  flex-shrink: 0; margin-top: 8px; opacity: 0.75;
}

/* Arrow list */
.rk-arrow-list { padding: 0.5rem 0 0.85rem; }
.rk-arrow-item {
  display: flex; align-items: flex-start;
  gap: 10px; font-size: 16px; line-height: 1.9;
  color: var(--ink-soft); padding: 3px 0;
}
.rk-arr {
  color: var(--rk-accent, #5B7FBF);
  font-size: 14px; font-weight: 600;
  flex-shrink: 0; margin-top: 3px;
}

/* Pull quote */
.rk-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  background: var(--paper-card);
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--rk-accent, #5B7FBF);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.rk-quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 3.2rem; line-height: 0;
  color: var(--rk-accent, #5B7FBF); opacity: 0.28;
  display: block; margin-bottom: 0.75rem;
}
.rk-quote-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 1.05rem;
  line-height: 1.78; color: var(--ink); margin: 0;
}

/* Feature cards (kekuatan / tantangan) */
.rk-feature-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--rk-accent, #5B7FBF);
  border-radius: 13px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 10px;
}
.rk-feature-num {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rk-accent, #5B7FBF); margin-bottom: 5px;
  opacity: 0.75;
}
.rk-feature-num.ch { color: #C4856A; opacity: 1; }
.rk-feature-card.ch {
  border-color: rgba(196,133,106,0.25);
  border-top-color: #C4856A;
}
.rk-feature-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.02rem; font-weight: 500;
  color: var(--ink); margin-bottom: 9px;
}
.rk-feature-body { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }

/* Icon card */
.rk-icon-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 9px;
  display: flex; gap: 11px; align-items: flex-start;
}
.rk-ic-accent { color: var(--rk-accent, #5B7FBF); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.rk-ic-warm { color: #C4856A; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.rk-ic-text { font-size: 15px; line-height: 1.72; color: var(--ink-soft); }

/* Value grid */
.rk-value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 1.2rem 0; }
.rk-value-card {
  background: var(--rk-accent-pale, #EEF2F9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 11px; padding: 1rem 1.1rem;
}
.rk-value-title { font-size: 14px; font-weight: 600; color: var(--rk-accent, #5B7FBF); margin-bottom: 5px; }
.rk-value-body { font-size: 13.5px; line-height: 1.68; color: var(--ink-soft); }

/* Step cards */
.rk-steps-wrap {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--rk-accent, #5B7FBF);
  border-radius: 13px; padding: 0.25rem 1.3rem 0.25rem;
}
.rk-step-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.rk-step-card:last-child { border-bottom: none; }
.rk-step-num {
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--rk-accent, #5B7FBF); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.rk-step-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.rk-step-body { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

/* Closer block */
.rk-closer {
  background: var(--rk-hero-bg, #1A2520);
  border-radius: 13px; padding: 1.75rem 1.9rem; margin-top: 1.6rem;
  position: relative; overflow: hidden;
}
.rk-closer::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.rk-closer p {
  font-family: 'Instrument Serif', serif;
  font-size: 16px; line-height: 1.9;
  color: rgba(255,255,255,0.65); margin: 0;
  position: relative;
}
.rk-closer em { color: rgba(255,255,255,0.9); font-style: italic; }
.rk-closer strong { color: rgba(255,255,255,0.88); }

/* Myth cards */
.rk-myth-card { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; margin-bottom: 10px; }
.rk-myth-label {
  padding: 0.7rem 1.15rem;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.72); font-style: italic;
  background: var(--rk-hero-bg, #1A2520);
  line-height: 1.6;
}
.rk-myth-label::before { content: '"'; color: var(--rk-accent-mid, #8AAAE0); margin-right: 2px; }
.rk-myth-label::after { content: '"'; color: var(--rk-accent-mid, #8AAAE0); margin-left: 2px; }
.rk-myth-body {
  background: var(--paper-card); padding: 1rem 1.15rem;
  font-size: 14.5px; line-height: 1.8; color: var(--ink-soft);
  border-top: 2px solid var(--rk-accent-pale, #EEF2F8);
}

/* Env list */
.rk-env-block { margin: 1.1rem 0; }
.rk-env-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.6rem; }
.rk-env-title.pos { color: var(--rk-accent, #5B7FBF); }
.rk-env-title.neg { color: #C4856A; }
.rk-env-item { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; line-height: 1.75; color: var(--ink-soft); padding: 3px 0; }
.rk-env-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rk-accent, #5B7FBF); flex-shrink: 0; margin-top: 8px; opacity: 0.7; }
.rk-env-dot.neg { background: #C4856A; opacity: 1; }

/* Disclaimer */
.rk-disclaimer {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--paper-card); border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-muted);
}

/* Orientasi Utamamu (dim scores) – kept from old design */
.rk-dim-top-card {
  position: relative; overflow: hidden;
  background: var(--paper-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 9px;
}
.rk-dim-badge {
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rk-accent-mid, #8AAAE0);
  margin-bottom: 5px;
}
.rk-dim-name { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.rk-dim-desc { font-size: .8rem; color: var(--ink-muted); line-height: 1.5; margin-bottom: 12px; }
.rk-dim-bar { height: 3px; background: var(--border); border-radius: 2px; }
.rk-dim-bar-fill { height: 3px; border-radius: 2px; transition: width .6s; }

/* Chips for lower dims */
.rk-dim-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: .8rem; font-weight: 500; color: var(--ink);
}
.rk-dim-chip-num { font-size: .72rem; font-weight: 600; color: var(--ink-muted); min-width: 14px; }

/* ─── COOLDOWN MODAL ─── */
.cooldown-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(26,20,16,0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.cooldown-overlay.open { display: flex; }
.cooldown-modal {
  background: var(--paper-card); border-radius: 18px;
  padding: 36px 32px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-card); position: relative; text-align: center;
}
.cooldown-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cooldown-title { font-family: 'Instrument Serif', serif; font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }
.cooldown-sub { font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 24px; }
.cooldown-days {
  background: var(--gold-pale); border: 1px solid #e8d8a0; border-radius: 12px;
  padding: 16px; margin-bottom: 24px;
}
.cooldown-days-num { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--gold); line-height: 1; }
.cooldown-days-label { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.cooldown-actions { display: flex; flex-direction: column; gap: 10px; }
.cooldown-btn-primary {
  padding: 13px; border-radius: 10px; background: var(--accent); color: #fff;
  border: none; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.cooldown-btn-primary:hover { opacity: .88; }
.cooldown-btn-ghost {
  padding: 11px; border-radius: 10px; background: transparent;
  border: 1.5px solid var(--border); color: var(--ink-2);
  font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; transition: background .15s;
}
.cooldown-btn-ghost:hover { background: var(--paper-warm); }

/* ─── AUTH ─── */
.auth-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .18s; border: 1.5px solid var(--border);
  background: var(--paper-card); color: var(--ink-2);
}
.auth-btn:hover { background: var(--paper-warm); border-color: var(--border); }
.auth-btn svg { flex-shrink: 0; }

.auth-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  font-family: 'DM Sans', sans-serif;
}
.auth-avatar-menu {
  position: absolute; top: 40px; right: 0;
  background: var(--paper-card); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-card);
  padding: 6px; min-width: 180px; z-index: 999;
  display: none;
}
.auth-avatar-menu.open { display: block; }
.auth-avatar-email {
  padding: 8px 10px 10px; font-size: 12px; color: var(--ink-muted);
  border-bottom: 1px solid var(--border-s); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.auth-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 7px; font-size: 14px;
  color: var(--ink-2); cursor: pointer; transition: background .15s;
}
.auth-menu-item:hover { background: var(--paper-warm); }
.auth-menu-item.danger { color: #c0392b; }

/* Auth Modal */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(26,20,16,0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  background: var(--paper-card); border-radius: 18px;
  padding: 36px 32px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow-card); position: relative;
}
.auth-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--paper-warm);
  color: var(--ink-muted); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.auth-close:hover { background: var(--border); }
.auth-modal-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem; color: var(--ink); margin-bottom: 6px;
}
.auth-modal-sub {
  font-size: 14px; color: var(--ink-muted); margin-bottom: 24px;
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid var(--border); background: var(--paper);
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .15s;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-submit {
  width: 100%; padding: 13px; border-radius: 10px;
  background: var(--accent); color: #fff; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 4px; transition: opacity .15s;
}
.auth-submit:hover { opacity: .88; }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.auth-divider { display:flex; align-items:center; gap:10px; margin:16px 0; color:var(--ink-muted); font-size:12px; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.btn-google { width:100%; padding:11px; border-radius:10px; border:1.5px solid var(--border); background:#fff; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:background .15s; color:var(--ink-2); }
.btn-google:hover { background:#f5f5f5; }
.auth-toggle {
  text-align: center; font-size: 13px; color: var(--ink-muted);
  margin-top: 16px;
}
.auth-toggle a { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 500; }
.auth-toggle a:hover { text-decoration: underline; }
.auth-error {
  background: #fef0ee; border: 1px solid #f5c2b8; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #c0392b;
  margin-bottom: 14px; display: none;
}
.auth-error.show { display: block; }
.auth-success {
  background: var(--green-pale); border: 1px solid #b8d8c4; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: var(--green);
  margin-bottom: 14px; display: none;
}
.auth-success.show { display: block; }

/* Save banner */
.save-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 14px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25); z-index: 800;
  font-size: 14px; max-width: 420px; width: calc(100% - 48px);
  opacity: 0; transform: translateX(-50%) translateY(20px);
  transition: all .3s; pointer-events: none;
}
.save-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.save-banner-text { flex: 1; line-height: 1.4; }
.save-banner-title { font-weight: 600; font-size: 14px; }
.save-banner-sub { font-size: 12px; opacity: .7; margin-top: 2px; }
.save-banner-btn {
  padding: 8px 16px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  flex-shrink: 0;
}
.save-banner-dismiss {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 18px; padding: 0 4px; flex-shrink: 0;
}
