@font-face {
  font-family: "System Sans";
  src: local("Inter"), local("SF Pro Display"), local("Segoe UI"), local("Microsoft YaHei");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-deep: #e8e0d1;
  --surface: rgba(255, 252, 246, 0.76);
  --surface-solid: #fffcf6;
  --ink: #17201d;
  --muted: #65706a;
  --line: rgba(23, 32, 29, 0.14);
  --line-strong: rgba(23, 32, 29, 0.28);
  --green: #1b5b47;
  --green-bright: #2f8767;
  --lime: #d7f36b;
  --coral: #ef7c62;
  --violet: #7a6bd1;
  --shadow: 0 26px 80px rgba(45, 52, 44, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --header-height: 84px;
  --max-width: 1180px;
  font-family: "System Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101512;
  --paper-deep: #18201b;
  --surface: rgba(24, 32, 27, 0.76);
  --surface-solid: #18201b;
  --ink: #f1f2e9;
  --muted: #a1aca5;
  --line: rgba(241, 242, 233, 0.12);
  --line-strong: rgba(241, 242, 233, 0.25);
  --green: #81d5b1;
  --green-bright: #a5e6c9;
  --lime: #c8e75f;
  --coral: #ff947c;
  --violet: #a89ceb;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 2%, rgba(215, 243, 107, 0.16), transparent 26rem),
    radial-gradient(circle at 92% 26%, rgba(122, 107, 209, 0.11), transparent 30rem),
    var(--paper);
  color: var(--ink);
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[role="radio"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--violet) 72%, transparent);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.18;
}

.ambient-one {
  top: 18vh;
  left: -260px;
  background: var(--lime);
}

.ambient-two {
  right: -260px;
  bottom: 5vh;
  background: var(--violet);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: #17201d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.quiet-link {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.quiet-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.quiet-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.camera-link {
  opacity: 0.68;
}

.icon-button {
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  background: var(--surface-solid);
  transform: rotate(10deg);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

main {
  min-height: calc(100vh - var(--header-height));
}

.view {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  animation: view-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.view[hidden] {
  display: none !important;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(360px, 0.87fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  min-height: 690px;
  padding: 82px 0 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: currentColor;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(3.15rem, 6.6vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.hero-copy h1 em {
  color: var(--green);
  font-weight: 500;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 6px 0 var(--lime);
}

.primary-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 9px 0 var(--lime);
}

.primary-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover {
  background: var(--surface-solid);
  transform: translateY(-2px);
}

.text-button,
.exit-button,
.back-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}

.text-button:hover,
.exit-button:hover,
.back-button:hover {
  color: var(--ink);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.73rem;
  list-style: none;
}

.trust-list span {
  margin-right: 5px;
  color: var(--green-bright);
  font-weight: 900;
}

.spectrum-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 90%, transparent), var(--surface)),
    var(--surface-solid);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.spectrum-card::before {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  content: "";
  background: var(--lime);
  opacity: 0.74;
}

.card-orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: -31px;
  right: -33px;
  width: 112px;
  height: 112px;
}

.orbit-two {
  top: -58px;
  right: -62px;
  width: 170px;
  height: 170px;
}

.spectrum-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #17201d;
}

.live-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #1b5b47;
  box-shadow: 0 0 0 4px rgba(27, 91, 71, 0.13);
}

.type-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 42px 0 44px;
}

.type-preview span {
  display: grid;
  aspect-ratio: 0.85;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  box-shadow: 0 10px 20px rgba(35, 44, 37, 0.07);
}

.type-preview span:nth-child(2) { background: var(--lime); color: #17201d; transform: translateY(-8px); }
.type-preview span:nth-child(3) { background: var(--coral); color: #241713; transform: translateY(5px); }
.type-preview span:nth-child(4) { background: var(--violet); color: #fff; transform: translateY(-3px); }

.mini-axis {
  margin-top: 22px;
}

.mini-axis div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.mini-axis i {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.mini-axis i::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.mini-axis i::after {
  position: absolute;
  top: 50%;
  left: var(--value);
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  content: "";
  background: var(--green);
  transform: translate(-50%, -50%);
}

.preview-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.signal-strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr) 1.1fr;
  margin-bottom: 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip > div {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.signal-strip > div:first-child {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.signal-strip > div:last-child {
  border-right: 0;
}

.signal-strip p {
  margin: 0;
}

.signal-strip small,
.signal-strip strong {
  display: block;
}

.signal-strip small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.signal-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-size: 1.15rem;
}

.method-section {
  padding: 0 0 140px;
  scroll-margin-top: 40px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px 60px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(2.3rem, 4vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.method-grid article {
  min-height: 280px;
  padding: 26px 24px 34px;
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.method-grid article:last-child {
  border-right: 0;
}

.method-grid article:hover {
  background: var(--surface);
  transform: translateY(-5px);
}

.method-number {
  display: block;
  margin-bottom: 72px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.method-grid h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
}

.quiz-view {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  padding: 50px 0 90px;
}

.quiz-shell {
  width: min(100%, 880px);
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.back-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.progress-copy {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

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

.progress-track {
  height: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--line);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.question-card {
  position: relative;
  min-height: 610px;
  padding: clamp(38px, 6vw, 68px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-card.is-changing {
  animation: question-change 300ms ease;
}

@keyframes question-change {
  0% { opacity: 0.25; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}

.question-kicker {
  margin: 0 0 24px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-card h2 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.question-hint {
  margin: 16px 0 50px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.answer-poles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.64rem;
}

.answer-poles span:nth-child(2) { text-align: center; }
.answer-poles span:last-child { text-align: right; }

.answer-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(7px, 1.4vw, 14px);
  align-items: center;
}

.scale-option {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.scale-option:nth-child(1),
.scale-option:nth-child(7) { transform: scale(1.08); }
.scale-option:nth-child(2),
.scale-option:nth-child(6) { transform: scale(0.94); }
.scale-option:nth-child(3),
.scale-option:nth-child(5) { transform: scale(0.82); }
.scale-option:nth-child(4) { transform: scale(0.7); }

.scale-option:hover,
.scale-option[aria-checked="true"] {
  z-index: 2;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.12);
}

.scale-option:nth-child(-n+3):hover,
.scale-option:nth-child(-n+3)[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green);
}

.scale-option:nth-child(n+5):hover,
.scale-option:nth-child(n+5)[aria-checked="true"] {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.answer-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 28px;
}

.answer-labels p {
  display: flex;
  gap: 10px;
  margin: 0;
  line-height: 1.55;
}

.answer-labels p:last-child {
  justify-content: flex-end;
  text-align: right;
}

.answer-labels span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.62rem;
}

.answer-labels strong {
  max-width: 280px;
  font-size: 0.82rem;
  font-weight: 650;
}

.keyboard-tip {
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

kbd {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-solid);
  font-family: inherit;
  font-size: 0.6rem;
}

.exit-button {
  display: block;
  margin: 26px auto 0;
}

.result-view {
  padding: 72px 0 120px;
}

.result-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.result-hero {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line-strong);
}

.result-code-wrap {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 46% 54% / 55% 43% 57% 45%;
  background: var(--lime);
  color: #17201d;
  transform: rotate(-2deg);
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--green) 22%, transparent);
}

.result-code-wrap::before,
.result-code-wrap::after {
  position: absolute;
  border: 1px solid rgba(23, 32, 29, 0.25);
  border-radius: 50%;
  content: "";
}

.result-code-wrap::before { width: 280px; height: 280px; }
.result-code-wrap::after { width: 330px; height: 330px; }

.result-code-wrap p,
.result-code-wrap h2,
.result-code-wrap span {
  position: relative;
  z-index: 1;
}

.result-code-wrap p {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.result-code-wrap h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(4.5rem, 9vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.result-code-wrap span {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 750;
}

.result-eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.result-intro h3 {
  margin: 0 0 22px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.result-intro > p:not(.result-eyebrow, .result-disclaimer) {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.result-disclaimer {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.65;
}

.axis-panel {
  margin-top: 68px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
}

.panel-heading h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.68rem;
}

.axis-results {
  display: grid;
  gap: 26px;
}

.axis-row-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 9px;
  font-size: 0.72rem;
}

.axis-row-head span:last-child {
  text-align: right;
}

.axis-row-head strong {
  min-width: 66px;
  color: var(--green);
  font-size: 0.68rem;
  text-align: center;
}

.axis-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 28%, transparent), color-mix(in srgb, var(--violet) 28%, transparent));
}

.axis-track::after {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 1px;
  content: "";
  background: var(--surface-solid);
}

.axis-marker {
  position: absolute;
  top: 50%;
  left: var(--axis-position);
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.insight-card {
  min-height: 310px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.accent-card {
  background: var(--green);
  color: #f7f6ed;
}

.card-label {
  margin: 0 0 50px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.accent-card .card-label {
  color: rgba(247, 246, 237, 0.66);
}

.insight-card h3 {
  margin: 0 0 20px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.insight-card ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.insight-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--coral);
}

.accent-card li {
  color: rgba(247, 246, 237, 0.82);
}

.accent-card li::before {
  background: var(--lime);
}

.wide-card {
  display: grid;
  min-height: 210px;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 30px;
  align-items: end;
}

.wide-card .card-label {
  margin-bottom: 14px;
}

.wide-card h3 {
  margin-bottom: 0;
}

.wide-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.connection-card {
  background: color-mix(in srgb, var(--violet) 14%, var(--surface));
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 86px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  margin: 0 7px;
  color: var(--green);
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 28px;
  left: 50%;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: var(--shadow);
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .spectrum-card {
    width: min(100%, 570px);
    margin: 0 auto;
  }

  .signal-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .signal-strip > div:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-location {
    display: none !important;
  }

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

  .method-grid article:nth-child(2) {
    border-right: 0;
  }

  .method-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .result-code-wrap {
    width: min(100%, 440px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
    --radius-lg: 22px;
  }

  .site-header,
  .view,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .brand small,
  .quiet-link {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .camera-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 0;
  }

  .camera-link::before {
    content: "◉";
    font-size: 0.9rem;
  }

  .hero-grid {
    gap: 52px;
    padding: 48px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-lead {
    font-size: 0.94rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .spectrum-card {
    min-height: 470px;
    padding: 22px;
    transform: none;
  }

  .type-preview {
    gap: 5px;
    margin-top: 38px;
  }

  .type-preview span {
    border-radius: 13px;
  }

  .signal-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 88px;
  }

  .signal-strip > div {
    min-height: 74px;
    padding: 12px 9px;
    text-align: center;
  }

  .signal-strip > div:first-child {
    text-align: left;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 2.55rem;
  }

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

  .method-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid article:last-child {
    border-bottom: 0;
  }

  .method-number {
    margin-bottom: 42px;
  }

  .question-card {
    min-height: 560px;
    padding: 34px 20px;
  }

  .question-hint {
    margin-bottom: 42px;
  }

  .answer-scale {
    gap: 5px;
  }

  .scale-option {
    font-size: 0.64rem;
  }

  .answer-poles {
    font-size: 0.55rem;
  }

  .answer-labels {
    gap: 14px;
  }

  .answer-labels strong {
    font-size: 0.72rem;
  }

  .result-view {
    padding-top: 48px;
  }

  .result-code-wrap {
    min-height: 310px;
  }

  .axis-panel,
  .insight-card {
    padding: 24px 20px;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading span {
    display: block;
    margin-top: 8px;
  }

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

  .wide-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    min-height: 110px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
