:root {
  --bg: #ffffff;
  --surface-subtle: #fafafb;
  --surface-hover: #f4f4f5;
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #efeff1;
  --line-strong: #e4e4e7;

  /* Monochrome Ink & Stone Data Pair + Dynamic Archetype Prism Tokens */
  --me: #18181b;
  --partner: #d4d4d8;
  --partner-ink: #52525b;
  --good: #18181b;
  --prism-grad: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #fb923c 100%);
  --arch-grad: linear-gradient(90deg, #6366f1 0%, #a855f7 52%, #f472b6 100%);
  --arch-dark-1: rgba(99, 102, 241, 0.44);
  --arch-dark-2: rgba(244, 114, 182, 0.34);
  --arch-soft: rgba(139, 92, 246, 0.08);
  --arch-border: rgba(139, 92, 246, 0.24);
  --arch-accent: #6d28d9;
  --arch-accent-light: #c4b5fd;

  --radius: 8px;
  --radius-lg: 12px;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease;
}

body.summary-mode {
  background: #f5f5f7;
}

html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.7;
}

.water-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  max-width: 580px;
  margin: 0 auto;
  padding: 20px 24px 72px;
  display: flex;
  flex-direction: column;
}

/* =========================================================================
   MINIMAL NOTION × LINEAR MASTHEAD
   ========================================================================= */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 20px;
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.brand:hover {
  opacity: 0.78;
}

.brand:active {
  transform: scale(0.95);
}

.brand-mark {
  display: block;
}

.masthead-right {
  display: inline-flex;
  align-items: center;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

.lang-btn:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.lang-btn.active {
  color: var(--ink);
  font-weight: 700;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================================================================
   ACT 0: ZERO-FRICTION NOTION INTRO & 2-STEP MICRO-GATE
   ========================================================================= */

.intro-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 48px;
}

.editorial-lead {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.editorial-lead strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.invite-banner {
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.62;
}

.invite-banner strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 6.4vw, 38px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: var(--ink);
}

.subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.68;
}

.intro-meta {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
}

/* Micro-gate & Q->A shared stage — calm, unhurried Apple motion */
@keyframes stageInNext {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stageInPrev {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.qa-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 40px;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.qa-stage.leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.qa-stage.anim-next {
  animation: stageInNext 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qa-stage.anim-prev {
  animation: stageInPrev 0.30s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Whisper-thin 2.5px Prism Progress Line */
.progress-track {
  width: 100%;
  height: 2.5px;
  background: rgba(24, 24, 27, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background: var(--prism-grad);
  border-radius: 999px;
  transition: width 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-bar.counter-only {
  justify-content: flex-end;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
}

.step-counter {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.q-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.2vw, 27px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.q-example {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.62;
}

/* Flat Notion Option Rows (Micro-Gate Steps) */
.option-list {
  display: grid;
  gap: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 10px;
  border: 1px solid rgba(24, 24, 27, 0.09);
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.option-row:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(24, 24, 27, 0.22);
}

.option-row:active {
  transform: scale(0.99);
}

.option-row.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.option-row-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.option-row-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

.option-row.active .option-row-sub {
  color: rgba(255, 255, 255, 0.72);
}

.option-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
}

.option-row.active .option-check {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
}

/* =========================================================================
   ACT 1: QUIET MONOCHROME 5-STEP SCALE (NO BOXES AROUND BOXES)
   ========================================================================= */

.polarity-cue {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-hover);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.scale-card {
  padding: 0;
}

.scale-anchors {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 10px;
}

.scale-anchors .anchor-left {
  color: var(--ink);
  font-weight: 600;
}

.scale-anchors .anchor-right {
  color: var(--muted);
  font-weight: 600;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.scale-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 82px;
  padding: 12px 4px;
  border-radius: 10px;
  border: 1px solid rgba(24, 24, 27, 0.09);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ink);
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  outline: none;
  transition: transform 0.14s ease, border-color 0.2s ease, background 0.22s ease, box-shadow 0.26s ease;
}

@media (hover: hover) {
  .scale-btn:hover {
    border-color: rgba(24, 24, 27, 0.22);
    background: rgba(255, 255, 255, 0.54);
  }
}

.scale-btn:focus-visible {
  border-color: rgba(24, 24, 27, 0.45);
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

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

.scale-node {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.scale-lbl {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #52525b;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

/* Translucent Optical Glass Tile Prism — ripples shine right through while ink stays 100% opaque */
.scale-btn.sel {
  background: var(--tile-grad);
  border-color: var(--tile-border);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.05), 0 2px 10px var(--tile-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.scale-btn.sel .scale-node {
  color: var(--ink);
}

.scale-btn.sel .scale-lbl {
  color: var(--ink);
  font-weight: 600;
}

/* Prominent full-width N/A button right below the 1-5 tiles */
.na-btn {
  width: 100%;
  margin-top: 10px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(24, 24, 27, 0.09);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #52525b;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.015em;
  cursor: pointer;
  outline: none;
  transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .na-btn:hover {
    border-color: rgba(24, 24, 27, 0.20);
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink);
  }
}

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

.na-btn.sel {
  border-color: rgba(24, 24, 27, 0.28);
  background: rgba(24, 24, 27, 0.05);
  color: var(--ink);
  font-weight: 600;
}

.qa-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  min-height: 28px;
}

/* Whisper-quiet desktop-only keyboard icon with clean hover tooltip (hidden on touch/mobile) */
.kbd-icon-wrap {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--faint);
  cursor: default;
  transition: color 0.16s ease, background 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .kbd-icon-wrap {
    display: inline-flex;
  }
}

.kbd-icon-wrap:hover,
.kbd-icon-wrap:focus-visible {
  color: var(--ink-soft);
  background: rgba(24, 24, 27, 0.04);
  outline: none;
}

.kbd-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.14);
}

.kbd-icon-wrap:hover .kbd-tip,
.kbd-icon-wrap:focus-visible .kbd-tip {
  opacity: 1;
  transform: translateY(0);
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.14s ease;
}

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

/* =========================================================================
   CLEAN NOTION × LINEAR BUTTONS & INPUTS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-tonal {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  padding: 11px 14px;
}

.btn-tonal:hover {
  background: var(--surface-subtle);
  border-color: #c8c8ce;
}

.btn-white {
  background: #ffffff;
  color: var(--ink);
}

.btn-white:hover {
  opacity: 0.92;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.input,
.select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.14s ease;
}

.input:focus,
.select:focus {
  border-color: var(--ink);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soft-chip {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.soft-chip:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.soft-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* =========================================================================
   ACT 2: OPTION C — OBSIDIAN COLLECTIBLE HERO + APPLE HEALTH CARDS & TABS
   ========================================================================= */

.summary-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Crisp floating white chapter cards over #F5F5F7 stone canvas */
.card {
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.065);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.03), 0 8px 24px rgba(24, 24, 27, 0.025);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.card-sub {
  margin: 6px 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.62;
}

/* Dark Obsidian Collectible Hero Card with interactive liquid water canvas inside */
.obsidian-card {
  position: relative;
  overflow: visible;
  border-radius: 20px;
  padding: 26px 24px;
  color: #ffffff;
  background: #141418;
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.22);
  cursor: pointer;
}

.obsidian-bg-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 86% 12%, var(--arch-dark-1), transparent 56%),
    radial-gradient(circle at 14% 88%, var(--arch-dark-2), transparent 56%),
    #141418;
}

.obsidian-water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.obsidian-content {
  position: relative;
  z-index: 2;
}

/* Hero Archetype Header & Interactive SEFV Code Popover */
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sum-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}

.sum-kicker-bar {
  width: 24px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--arch-grad);
  flex-shrink: 0;
}

.code-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.code-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  outline: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.code-tag:hover,
.code-tag:focus-visible,
.code-wrap.open .code-tag {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}

.code-info-ico {
  opacity: 0.66;
  flex-shrink: 0;
  transition: opacity 0.16s ease;
}

.code-tag:hover .code-info-ico,
.code-wrap.open .code-info-ico {
  opacity: 1;
}

.code-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: min(304px, calc(100vw - 56px));
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(20, 20, 26, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  z-index: 40;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  text-align: left;
  cursor: default;
}

.code-wrap.open .code-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .code-wrap:hover .code-popover,
  .code-wrap:focus-within .code-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.code-pop-list {
  display: grid;
  gap: 8px;
}

.code-pop-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  line-height: 1.35;
}

.code-pop-key {
  width: 24px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.code-pop-row.strained .code-pop-key {
  background: rgba(255, 255, 255, 0.16);
  color: var(--arch-accent-light);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.code-pop-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.code-pop-active {
  color: #ffffff;
  font-weight: 600;
}

.code-pop-opp {
  color: rgba(255, 255, 255, 0.46);
  font-weight: 400;
}

.archetype-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 5.8vw, 33px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(10, 10, 14, 0.86), 0 1px 3px rgba(10, 10, 14, 0.75);
}

.archetype-tagline {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.66;
  text-shadow: 0 1px 12px rgba(10, 10, 14, 0.88), 0 1px 2px rgba(10, 10, 14, 0.75);
}

/* Dark Glass 4-Axis Spec Strip inside Obsidian Hero */
.axis-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  padding: 12px 6px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.axis-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.axis-cell:last-child {
  border-right: none;
}

.axis-cat {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 3px;
}

.axis-val {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.3;
}

.axis-cell.strained .axis-val {
  color: var(--arch-accent-light);
  font-weight: 700;
}

.tip-callout {
  position: relative;
  padding: 14px 16px 14px 19px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.62;
}

.tip-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: var(--arch-grad);
}

.tip-callout strong {
  color: #ffffff;
  font-weight: 650;
}

/* Segmented Tabs for Research Diagnosis vs. 3-Step Playbook */
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f1f3;
  margin-bottom: 18px;
}

.seg-tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.seg-tab-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(24, 24, 27, 0.08);
}

.seg-panel.hidden {
  display: none;
}

/* 2x2 Compact Research Bento inside the Tab Card */
.research-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.research-tile {
  display: flex;
  flex-direction: column;
  padding: 15px 16px 13px;
  border-radius: 13px;
  background: #fafafb;
  border: 1px solid var(--line);
}

.research-tile .research-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.research-tile .research-body {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

.research-foot {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(24, 24, 27, 0.055);
  display: flex;
  justify-content: flex-end;
}

.research-cite-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--faint);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.14s ease;
}

.research-cite-link:hover {
  color: var(--ink-soft);
}

.research-cite-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--arch-accent);
  opacity: 0.72;
  flex-shrink: 0;
}

/* Disciplined Editorial Balance Scorecard (50% hairline + Prism highlight strictly on peak imbalance) */
.legend-inline {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-inline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tile-row {
  margin-bottom: 16px;
}

.tile-row:last-of-type {
  margin-bottom: 0;
}

.tile-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.tile-row.outlier-strain .tile-row-meta,
.tile-row.outlier-partner .tile-row-meta {
  color: var(--ink);
  font-weight: 600;
}

.tile-row-lbl-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 7px;
  min-width: 0;
}

.tile-row-tag {
  font-size: 10.5px;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tile-row-tag.strain {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
}

.tile-row-tag.partner {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

.tile-row-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.tile-row.outlier-strain .tile-row-pct,
.tile-row.outlier-partner .tile-row-pct {
  color: var(--ink);
  font-weight: 700;
}

.score-bar-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: #f1f1f3;
  overflow: visible;
}

.score-bar-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: rgba(24, 24, 27, 0.16);
  pointer-events: none;
}

.score-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: #27272a;
}

.tile-row.outlier-strain .score-bar-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 48%, #f43f5e 100%);
}

.tile-row.outlier-partner .score-bar-fill {
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 52%, #14b8a6 100%);
}

.score-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--faint);
}

.justice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.j-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.j-box span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.j-box strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Research Editorial Hairline List (All 4 Expanded) */
.editorial-list {
  display: flex;
  flex-direction: column;
}

.editorial-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.editorial-item:first-child {
  padding-top: 2px;
  border-top: none;
}

.editorial-item:last-child {
  padding-bottom: 0;
}

.research-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

.status-dot.dot-me {
  background: var(--ink);
}

.status-dot.dot-partner {
  background: var(--muted);
}

.status-dot.dot-good {
  background: var(--ink);
}

.cite-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.14s ease;
}

.cite-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.research-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.44;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.research-body {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Weekly 3-Step Playbook (Clean Pill Tiles inside Tab Panel) */
.playbook-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.playbook-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fafafb;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.64;
}

.playbook-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--arch-soft);
  border: 1px solid var(--arch-border);
  color: var(--arch-accent);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* Partner Compare Reveal (Clean Dark Editorial Block) */
.gap-hero {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin-bottom: 20px;
}

.gap-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 6px;
}

.gap-big-num {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  margin: 2px 0 10px;
}

.gap-headline {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.gap-desc {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.love-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.agree-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.clash-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.clash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.clash-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface-hover);
  color: var(--ink-soft);
  white-space: nowrap;
}

.clash-views {
  font-size: 13px;
  color: var(--muted);
}

/* Wordle Text Preview & Share Actions */
.wordle-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 16px 0;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.native-share-wrap {
  text-align: center;
  margin-top: 4px;
}

/* Quiet Light Waitlist Card (lets the Obsidian Archetype Hero stay the #1 visual star!) */
.waitlist-card {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.03), 0 8px 24px rgba(24, 24, 27, 0.025);
}

.waitlist-card .eyebrow {
  color: var(--arch-accent);
  font-weight: 650;
  margin-bottom: 6px;
}

.waitlist-card .card-title {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

.waitlist-card .card-sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.waitlist-success {
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--arch-soft);
  border: 1px solid var(--arch-border);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

/* Quiet Academic APA References */
.references-section {
  margin-top: 4px;
  padding: 18px 6px 4px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

.references-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}

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

.ref-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px;
  font-size: 12px;
  line-height: 1.62;
  color: var(--muted);
  scroll-margin-top: 24px;
}

.ref-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.ref-item em {
  font-style: italic;
}

.ref-item a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.ref-item a:hover {
  color: var(--ink);
}

.ref-item:target {
  background: var(--surface-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  margin: -6px -8px;
  color: var(--ink);
}

.retake-wrap {
  text-align: center;
  padding-top: 20px;
}

.footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.footer p {
  margin: 0;
}

/* Minimal Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(14px);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 95;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

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

/* =========================================================================
   16-ARCHETYPE ATLAS — POPOVER FOOTER, EARLY-BETA BELOW ENTRY & SPA SHEET
   ========================================================================= */

.code-pop-foot {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.code-pop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 2px 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  transition: color 0.14s ease;
}

.code-pop-link:hover {
  color: #ffffff;
}

/* Below-Waitlist Quiet Chapter Card */
.atlas-teaser-card {
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.atlas-teaser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.atlas-swatch-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.atlas-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.atlas-teaser-btn {
  margin-top: 14px;
  width: 100%;
}

/* Full-Screen SPA Sheet (#types) */
body.atlas-open {
  overflow: hidden;
}

.atlas-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #f5f5f7;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: atlasSlideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.atlas-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 24, 27, 0.07);
}

.atlas-topbar-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.atlas-topbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.atlas-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.atlas-cold-btn {
  border: none;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.atlas-cold-btn:hover {
  background: #27272a;
}

.atlas-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  background: #ffffff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.atlas-close-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(24, 24, 27, 0.24);
}

.atlas-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 18px 20px 64px;
}

.atlas-sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Sticky-clean 4-Family Filter Bar */
.atlas-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.atlas-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background: #ffffff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.atlas-filter-pill:hover {
  border-color: rgba(24, 24, 27, 0.24);
  color: var(--ink);
}

.atlas-filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.atlas-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Family Section */
.atlas-family {
  margin-bottom: 28px;
}

.atlas-family-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}

.atlas-family-bar {
  width: 22px;
  height: 3.5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.atlas-family-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.atlas-family-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

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

/* Pure-CSS Obsidian Collectible Mini-Card (Zero WebGL, 60fps) */
.atlas-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  border-radius: 16px;
  padding: 16px 16px 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 86% 12%, var(--c-aura1), transparent 58%),
    radial-gradient(circle at 14% 88%, var(--c-aura2), transparent 58%),
    #141418;
  box-shadow: 0 8px 22px rgba(24, 24, 27, 0.14);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.atlas-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(24, 24, 27, 0.22);
}

.atlas-card.is-mine {
  border: 1.5px solid var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-glow), 0 14px 30px rgba(24, 24, 27, 0.24);
}

.atlas-card.is-partner:not(.is-mine) {
  border: 1.5px dashed rgba(255, 255, 255, 0.44);
}

.atlas-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
}

.atlas-code {
  font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
}

.atlas-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atlas-badge-mine {
  background: #ffffff;
  color: #141418;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

.atlas-badge-partner {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.atlas-card-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #ffffff;
  word-break: keep-all;
}

.atlas-card-tagline {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atlas-micro-strip {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.atlas-micro-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 5px;
}

.atlas-micro-chip.strained {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.14);
}

/* Funnel-Closing Bridge Card at Bottom of Atlas */
.atlas-bridge {
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.atlas-bridge-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.atlas-bridge-btn {
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
}

/* Tap-to-Inspect Specimen Detail Modal */
.specimen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 14, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fadeInSimple 0.16s ease both;
}

@keyframes fadeInSimple {
  from { opacity: 0; }
  to { opacity: 1; }
}

.specimen-modal {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 24px 22px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 86% 12%, var(--c-aura1), transparent 58%),
    radial-gradient(circle at 14% 88%, var(--c-aura2), transparent 58%),
    #141418;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

.specimen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.specimen-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
}

.specimen-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.specimen-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.specimen-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.24;
  color: #ffffff;
  word-break: keep-all;
}

.specimen-tagline {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.specimen-axes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.specimen-axis-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specimen-axis-key {
  font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex-shrink: 0;
}

.specimen-axis-row.strained .specimen-axis-key {
  background: rgba(244, 63, 94, 0.24);
  color: #fda4af;
}

.specimen-axis-val {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.specimen-axis-main {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.specimen-axis-opp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
}

.specimen-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.specimen-box-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.specimen-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

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

  .atlas-grid {
    gap: 10px;
  }

  .atlas-card {
    padding: 13px 12px 12px;
    border-radius: 14px;
  }

  .atlas-card-title {
    font-size: 14.5px;
  }

  .atlas-card-tagline {
    font-size: 11.5px;
    margin-bottom: 10px;
  }

  .atlas-micro-chip {
    font-size: 9.5px;
    padding: 2px 5px;
  }

  .specimen-axes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .app-shell {
    padding: 16px 14px 56px;
  }

  .card,
  .obsidian-card,
  .waitlist-card,
  .atlas-teaser-card {
    padding: 20px 18px;
  }

  .atlas-topbar-inner,
  .atlas-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .axis-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 0;
    padding: 12px 8px;
  }

  .axis-cell:nth-child(2) {
    border-right: none;
  }

  .scale-grid {
    gap: 5px;
  }

  .scale-btn {
    min-height: 76px;
    padding: 10px 2px;
    border-radius: 9px;
  }

  .scale-node {
    font-size: 14.5px;
  }

  .scale-lbl {
    font-size: 10.5px;
    letter-spacing: -0.035em;
  }
}
