:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --bg-strong: #efe7d9;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-solid: #fffdf8;
  --surface-muted: #f2ebe0;
  --line: rgba(75, 92, 79, 0.14);
  --line-strong: rgba(75, 92, 79, 0.26);
  --text: #22312b;
  --text-strong: #19231f;
  --text-soft: #5f6f67;
  --accent: #557465;
  --accent-deep: #375246;
  --accent-soft: #d7e5dd;
  --calm: #4f7a61;
  --calm-bg: #e4f1e7;
  --watch: #9d7943;
  --watch-bg: #f6eddc;
  --caution: #a95f3f;
  --caution-bg: #f7e5dd;
  --alert: #a34747;
  --alert-bg: #f5dede;
  --shadow-soft: 0 24px 60px -32px rgba(39, 53, 46, 0.28);
  --shadow-panel: 0 16px 40px -28px rgba(39, 53, 46, 0.22);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 84px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  /* 심리적 안정 파스텔 그라데이션 — BaseLayout이 접속마다 팔레트 회전 (--bg-pastel-a/b/c) */
  background-color: var(--bg-pastel-base, #f7f5f2);
  background-image:
    radial-gradient(ellipse 80% 60% at 85% 10%, var(--bg-pastel-a, #e3d5ff) 0%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 15% 90%, var(--bg-pastel-b, #c6e9d5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 55% at 10% 15%, var(--bg-pastel-c, #ffddbe) 0%, transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  content: "";
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(246, 242, 234, 0.82);
  border-bottom: 1px solid rgba(75, 92, 79, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
}

.wordmark__name {
  color: var(--text-strong);
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.wordmark__tag {
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  background: rgba(255, 253, 248, 0.9);
  color: var(--text-strong);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 30px -20px rgba(85, 116, 101, 0.72);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-deep);
}

.button--secondary {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, 0.78);
  color: var(--text-strong);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text-soft);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page {
  padding: 2.5rem 0 5rem;
}

.page-hero,
.home-hero {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.home-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  padding: 3rem 0 2.5rem;
}

.page-hero {
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
  margin-bottom: 2rem;
}

.hero-copy,
.hero-panel,
.panel,
.card,
.footer-card,
.notice-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-copy,
.panel,
.card,
.notice-card,
.footer-card {
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: clamp(2rem, 4vw, 4.25rem);
}

.hero-copy::after,
.hero-panel::after,
.panel::after,
.card::after,
.notice-card::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(85, 116, 101, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 62%);
  pointer-events: none;
  content: "";
}

.hero-copy > *,
.hero-panel > *,
.panel > *,
.card > *,
.notice-card > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.page-hero h1,
.section-title h2,
.legal-copy h1,
.legal-copy h2,
.legal-copy h3,
.result-summary__level,
.matrix-card__title {
  margin: 0;
  color: var(--text-strong);
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
}

.page-hero h1,
.legal-copy h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
}

.hero-copy p,
.hero-copy li,
.page-lead,
.card p,
.legal-copy p,
.legal-copy li,
.faq-item p,
.info-list li,
.result-interpretation p {
  max-width: 64ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero-lead,
.page-lead {
  font-size: 1.08rem;
}

.hero-actions,
.intro-actions,
.result-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero-note,
.inline-note,
.privacy-note,
.affiliate-note {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(85, 116, 101, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
  font-size: 0.93rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.trust-list,
.info-list,
.legal-links,
.footer-links,
.score-grid,
.detail-grid,
.resources-grid,
.faq-grid,
.quick-points {
  display: grid;
  gap: 1rem;
}

.trust-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-item,
.score-card,
.detail-card,
.resource-card,
.faq-item,
.matrix-card,
.callout-card,
.notice-item {
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(75, 92, 79, 0.14);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-panel);
}

.trust-item strong,
.score-card__value,
.resource-card__name,
.faq-item h3,
.matrix-card__title,
.detail-card__label {
  display: block;
  color: var(--text-strong);
  font-weight: 700;
}

.trust-item strong {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.trust-item span,
.detail-card__score,
.resource-card__meta,
.faq-item p,
.matrix-card__note,
.callout-card p,
.score-card__meta {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.section {
  padding: 2rem 0;
}

.section-title {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: clamp(1.95rem, 3vw, 2.8rem);
}

.section-title p {
  max-width: 70ch;
  color: var(--text-soft);
}

.tests-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.test-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 280px;
  padding: 1.4rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.test-card:hover,
.test-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(85, 116, 101, 0.28);
}

.test-card--feature {
  min-height: 100%;
  grid-row: span 2;
  background:
    radial-gradient(circle at top right, rgba(85, 116, 101, 0.17), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(244, 238, 227, 0.88));
}

.test-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.test-card__tag,
.pill,
.section-badge,
.score-card__level,
.resource-card__tag,
.matrix-card__tone,
.callout-card__tone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.test-card__tag,
.resource-card__tag,
.matrix-card__tone,
.callout-card__tone {
  background: rgba(85, 116, 101, 0.12);
}

.score-card__label {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.test-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.test-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(75, 92, 79, 0.12);
  color: var(--text-soft);
}

.test-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-deep);
  font-weight: 700;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: 1rem;
}

.steps-list {
  display: grid;
  gap: 0.9rem;
}

.step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.step-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.danger-band {
  padding: 1.4rem;
  border: 1px solid rgba(163, 71, 71, 0.16);
  background: rgba(255, 249, 248, 0.92);
}

.danger-band h2,
.danger-band h3 {
  margin: 0 0 0.6rem;
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 1.5rem;
}

.danger-band strong {
  color: var(--alert);
}

.page-grid {
  display: grid;
  gap: 1rem;
}

.test-shell {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.intro-layout,
.question-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.intro-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.8fr);
}

.question-layout {
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
}

.panel {
  padding: 1.5rem;
}

.panel--primary {
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.panel h2,
.panel h3,
.callout-card h3,
.detail-section h2,
.resources-section h2,
.result-interpretation h2,
.score-section h2,
.question-card h2 {
  margin: 0 0 0.85rem;
  color: var(--text-strong);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lead-list,
.compact-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.compact-list li {
  padding-left: 0.15rem;
}

.question-progress {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 1rem;
}

.progress-card {
  padding: 1.3rem;
}

.progress-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.progress-card__count {
  color: var(--text-strong);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.progress-card__track {
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(85, 116, 101, 0.12);
}

.progress-card__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 220ms ease;
}

.question-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.question-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}

.section-badge {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.question-card__index {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.question-card__prompt {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.option-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(75, 92, 79, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--text-strong);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(85, 116, 101, 0.28);
  background: #fffefb;
}

.option-button.is-selected {
  border-color: rgba(85, 116, 101, 0.42);
  background: rgba(215, 229, 221, 0.82);
}

.option-button__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(85, 116, 101, 0.12);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.option-button__label {
  line-height: 1.6;
}

.question-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.question-actions .button {
  flex: 1;
}

.button[disabled] {
  opacity: 0.42;
  pointer-events: none;
}

.result-stack {
  display: grid;
  gap: 1rem;
}

.result-summary {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.result-summary__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-summary__level {
  font-size: clamp(2rem, 4vw, 3rem);
}

.result-summary__desc,
.result-summary__date {
  color: var(--text-soft);
}

.tone-calm {
  color: var(--calm);
}

.tone-watch {
  color: var(--watch);
}

.tone-caution {
  color: var(--caution);
}

.tone-alert {
  color: var(--alert);
}

.surface-calm {
  background: var(--calm-bg);
}

.surface-watch {
  background: var(--watch-bg);
}

.surface-caution {
  background: var(--caution-bg);
}

.surface-alert {
  background: var(--alert-bg);
}

.score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-card__value {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.06em;
}

.score-card__level {
  margin-top: 0.85rem;
  width: fit-content;
}

.score-card__meta {
  margin-top: 0.15rem;
}

.callout-card {
  padding: 1.4rem;
}

.callout-card__tone,
.matrix-card__tone,
.resource-card__tag {
  margin-bottom: 0.8rem;
}

.detail-section,
.result-interpretation,
.resources-section,
.matrix-section {
  padding: 1.4rem;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card__label {
  margin-bottom: 0.75rem;
}

.detail-card__meter {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(85, 116, 101, 0.1);
}

.detail-card__fill {
  height: 100%;
  border-radius: inherit;
}

.detail-card__score {
  margin-top: 0.55rem;
}

.matrix-grid,
.resources-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matrix-card {
  display: grid;
  gap: 0.55rem;
  min-height: 180px;
}

.matrix-card.is-active {
  border-color: rgba(75, 92, 79, 0.24);
  box-shadow: 0 0 0 1px rgba(75, 92, 79, 0.08), var(--shadow-panel);
}

.resource-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.resource-card a {
  color: inherit;
  text-decoration: none;
}

.resource-card__name {
  font-size: 1.05rem;
}

.resource-card__cta {
  color: var(--accent-deep);
  font-weight: 700;
}

.result-interpretation p + p {
  margin-top: 0.95rem;
}

.site-footer {
  padding: 2.2rem 0 2.8rem;
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
}

.site-footer__bottom {
  padding-top: 1rem;
}

.footer-card {
  padding: 1.35rem 1.45rem;
}

.footer-card__brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
}

.footer-card__title {
  color: var(--text-strong);
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  grid-template-columns: none;
  width: 100%;
}

.footer-links a,
.legal-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-disclaimer {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-trust-badge {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-bottom-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
}

.footer-music-note {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  opacity: 0.65;
}

.footer-music-note a {
  color: inherit;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.footer-music-note a:hover { opacity: 1; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-soft);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 1rem;
}

.legal-copy,
.legal-side {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-copy > * + * {
  margin-top: 1rem;
}

.legal-copy ul,
.legal-copy ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.legal-copy h2 {
  font-size: 1.6rem;
}

.legal-copy h3 {
  font-size: 1.2rem;
}

.note-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(75, 92, 79, 0.12);
}

.empty-state,
.not-found {
  padding: clamp(2rem, 4vw, 3.4rem);
  text-align: left;
}

.not-found h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.print-only {
  display: none;
}

@media (max-width: 1080px) {
  .home-hero,
  .page-hero,
  .intro-layout,
  .split-grid,
  .legal-shell,
  .tests-grid {
    grid-template-columns: 1fr;
  }

  .tests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-card--feature {
    grid-row: auto;
    min-height: 340px;
  }

  .footer-links {
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 860px) {
  .question-layout {
    grid-template-columns: 1fr;
  }

  .question-progress {
    position: static;
  }

  .score-grid,
  .detail-grid,
  .matrix-grid,
  .resources-grid,
  .faq-grid,
  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 76px;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .legal-copy h1 {
    max-width: none;
  }

  .button,
  .question-actions .button {
    width: 100%;
  }

  .hero-actions,
  .intro-actions,
  .result-actions,
  .legal-actions,
  .cookie-banner__actions,
  .question-actions {
    flex-direction: column;
  }

  .tests-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-wrap: nowrap;
    gap: 0.4rem;
    font-size: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .footer-links a {
    flex: 0 0 auto;
    word-break: keep-all;
  }
}

@media (max-width: 560px) {
  .page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }

  .shell {
    width: min(calc(100% - 1rem), var(--container));
  }

  .hero-copy,
  .panel,
  .card,
  .notice-card,
  .footer-card {
    border-radius: 22px;
  }

  .wordmark__name {
    font-size: 1.45rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .site-footer,
  .cookie-banner,
  .question-actions,
  .resources-section,
  .page-hero,
  .print-hidden {
    display: none !important;
  }

  .screen {
    display: none !important;
  }

  .screen.is-active[data-screen="result"] {
    display: block !important;
  }

  .panel,
  .card,
  .footer-card,
  .notice-card {
    box-shadow: none;
    border-color: #d0d0d0;
    background: #fff;
  }

  .print-only {
    display: block;
  }
}

:root {
  --bg: #fff7f1;
  --bg-strong: #ffe6dc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #fffdfb;
  --surface-muted: #fff0e6;
  --line: rgba(125, 103, 92, 0.14);
  --line-strong: rgba(125, 103, 92, 0.24);
  --text: #40312f;
  --text-strong: #2e2321;
  --text-soft: #74635f;
  --accent: #ea705d;
  --accent-deep: #cc5646;
  --accent-soft: #ffe0d8;
  --shadow-soft: 0 30px 70px -34px rgba(182, 112, 85, 0.35);
  --shadow-panel: 0 18px 44px -30px rgba(182, 112, 85, 0.28);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --page-accent: #ea705d;
  --page-accent-deep: #cc5646;
  --page-accent-soft: #ffe0d8;
  --page-accent-fog: rgba(234, 112, 93, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 197, 170, 0.72), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(157, 223, 210, 0.58), transparent 20%),
    radial-gradient(circle at 82% 84%, rgba(255, 226, 165, 0.62), transparent 18%),
    radial-gradient(circle at 20% 88%, rgba(255, 185, 201, 0.48), transparent 16%),
    linear-gradient(180deg, #fffaf5 0%, #fff3ea 100%);
}

body::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.72) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  opacity: 0.34;
}

body[data-page="depression"] {
  --page-accent: #6f8fd9;
  --page-accent-deep: #4e6cb0;
  --page-accent-soft: #e4ecff;
  --page-accent-fog: rgba(111, 143, 217, 0.16);
}

body[data-page="anxiety"] {
  --page-accent: #52a58a;
  --page-accent-deep: #37846d;
  --page-accent-soft: #def5eb;
  --page-accent-fog: rgba(82, 165, 138, 0.16);
}

body[data-page="stress"] {
  --page-accent: #d89b41;
  --page-accent-deep: #bf7b20;
  --page-accent-soft: #fff1cf;
  --page-accent-fog: rgba(216, 155, 65, 0.18);
}

body[data-page="adhd"] {
  --page-accent: #5f93e6;
  --page-accent-deep: #3e72c4;
  --page-accent-soft: #e1ebff;
  --page-accent-fog: rgba(95, 147, 230, 0.16);
}

body[data-page="self-esteem"] {
  --page-accent: #dc7c95;
  --page-accent-deep: #bc5f77;
  --page-accent-soft: #ffe3ea;
  --page-accent-fog: rgba(220, 124, 149, 0.16);
}

.site-header {
  background: rgba(255, 248, 242, 0.76);
  border-bottom: 1px solid rgba(125, 103, 92, 0.08);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-strong);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f19a58 100%);
  box-shadow: 0 20px 32px -22px rgba(234, 112, 93, 0.72);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-deep) 0%, #da7f39 100%);
}

body[data-test-key] .button--primary,
body[data-page="depression"] .button--primary,
body[data-page="anxiety"] .button--primary,
body[data-page="stress"] .button--primary,
body[data-page="adhd"] .button--primary,
body[data-page="self-esteem"] .button--primary {
  background: linear-gradient(135deg, var(--page-accent) 0%, var(--page-accent-deep) 100%);
  box-shadow: 0 20px 34px -24px rgba(76, 88, 122, 0.4);
}

.hero-copy,
.hero-panel,
.panel,
.card,
.footer-card,
.notice-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 250, 245, 0.88));
  border: 1px solid rgba(125, 103, 92, 0.14);
}

.home-hero .hero-copy {
  padding-bottom: clamp(2.8rem, 4vw, 4.6rem);
  background:
    radial-gradient(circle at top right, rgba(255, 219, 177, 0.72), transparent 28%),
    radial-gradient(circle at left 16%, rgba(255, 198, 190, 0.64), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 238, 0.92));
}

.home-hero .hero-copy h1 {
  max-width: 10ch;
}

.hero-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 112, 93, 0.14);
}

.hero-panel {
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 219, 177, 0.62), transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(171, 232, 214, 0.5), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 241, 0.9));
}

.hero-panel__label {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-mood-grid {
  display: grid;
  gap: 0.85rem;
}

.mood-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(125, 103, 92, 0.12);
  box-shadow: var(--shadow-panel);
}

.mood-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  color: var(--text-strong);
}

.mood-card span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.mood-card--blue {
  background: linear-gradient(180deg, #eef4ff, #f8fbff);
}

.mood-card--green {
  background: linear-gradient(180deg, #e8f8f0, #f7fcf9);
}

.mood-card--yellow {
  background: linear-gradient(180deg, #fff3d7, #fffaf0);
}

.mood-card--rose {
  background: linear-gradient(180deg, #ffe6ed, #fff8fa);
}

.section-title h2 {
  max-width: 12ch;
}

.tests-grid {
  gap: 1.2rem;
}

.test-card {
  overflow: hidden;
  min-height: 300px;
  border: 0;
}

.test-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  content: "";
}

.test-card--depression {
  background: linear-gradient(180deg, #eef3ff 0%, #fdfcff 100%);
}

.test-card--depression::before {
  background: linear-gradient(90deg, #7a95e8 0%, #b0c2ff 100%);
}

.test-card--anxiety {
  background: linear-gradient(180deg, #e8f8f0 0%, #fcfffd 100%);
}

.test-card--anxiety::before {
  background: linear-gradient(90deg, #4eb794 0%, #8cd6bc 100%);
}

.test-card--stress {
  background: linear-gradient(180deg, #fff2d9 0%, #fffdf7 100%);
}

.test-card--stress::before {
  background: linear-gradient(90deg, #dd9a2b 0%, #f2c86a 100%);
}

.test-card--adhd {
  background: linear-gradient(180deg, #edf3ff 0%, #fff7ef 100%);
}

.test-card--adhd::before {
  background: linear-gradient(90deg, #6698eb 0%, #ffa56f 100%);
}

.test-card--self-esteem {
  background: linear-gradient(180deg, #ffe8ef 0%, #fffafc 100%);
}

.test-card--self-esteem::before {
  background: linear-gradient(90deg, #dc7c95 0%, #f0a07f 100%);
}

.test-card--feature {
  background:
    radial-gradient(circle at top right, rgba(255, 208, 182, 0.9), transparent 26%),
    linear-gradient(180deg, #edf3ff 0%, #fff9f2 100%);
}

.test-card__tag {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(125, 103, 92, 0.08);
  color: var(--text-strong);
}

.test-card--depression .test-card__tag {
  background: #dde7ff;
  color: #536eb1;
}

.test-card--anxiety .test-card__tag {
  background: #daf3e8;
  color: #2f8b70;
}

.test-card--stress .test-card__tag {
  background: #fff1cd;
  color: #b67a1f;
}

.test-card--adhd .test-card__tag {
  background: #dfeaff;
  color: #476fb9;
}

.test-card--self-esteem .test-card__tag {
  background: #ffdfe8;
  color: #bf647d;
}

.test-card__title {
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
}

.test-card__cta {
  align-self: flex-start;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.panel h2,
.callout-card h3,
.detail-section h2,
.resources-section h2,
.result-interpretation h2,
.score-section h2,
.question-card h2 {
  font-size: 1.26rem;
}

body[data-test-key] .hero-copy,
body[data-page="depression"] .hero-copy,
body[data-page="anxiety"] .hero-copy,
body[data-page="stress"] .hero-copy,
body[data-page="adhd"] .hero-copy,
body[data-page="self-esteem"] .hero-copy {
  background:
    radial-gradient(circle at top right, var(--page-accent-fog), transparent 30%),
    radial-gradient(circle at left 18%, rgba(255, 226, 195, 0.58), transparent 22%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 241, 0.92));
}

body[data-test-key] .hero-copy .eyebrow,
body[data-page="depression"] .hero-copy .eyebrow,
body[data-page="anxiety"] .hero-copy .eyebrow,
body[data-page="stress"] .hero-copy .eyebrow,
body[data-page="adhd"] .hero-copy .eyebrow,
body[data-page="self-esteem"] .hero-copy .eyebrow {
  color: var(--page-accent-deep);
}

body[data-test-key] .panel,
body[data-page="depression"] .panel,
body[data-page="anxiety"] .panel,
body[data-page="stress"] .panel,
body[data-page="adhd"] .panel,
body[data-page="self-esteem"] .panel {
  background:
    radial-gradient(circle at top right, var(--page-accent-fog), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 246, 0.92));
}

body[data-test-key] .privacy-note,
body[data-test-key] .hero-note,
body[data-test-key] .inline-note {
  border-color: rgba(125, 103, 92, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

body[data-test-key] .section-badge {
  background: var(--page-accent-soft);
  color: var(--page-accent-deep);
}

body[data-test-key] .progress-card__fill {
  background: linear-gradient(90deg, var(--page-accent), var(--page-accent-deep));
}

body[data-test-key] .progress-card__count,
body[data-test-key] .question-card__prompt {
  color: var(--text-strong);
}

body[data-test-key] .question-card {
  background:
    radial-gradient(circle at top right, var(--page-accent-fog), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 247, 0.94));
}

body[data-test-key] .option-button {
  background: rgba(255, 255, 255, 0.86);
}

body[data-test-key] .option-button:hover,
body[data-test-key] .option-button:focus-visible {
  border-color: rgba(125, 103, 92, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

body[data-test-key] .option-button.is-selected {
  border-color: rgba(125, 103, 92, 0.16);
  background: linear-gradient(180deg, var(--page-accent-soft), rgba(255, 255, 255, 0.95));
}

body[data-test-key] .option-button.is-selected .option-button__index {
  background: var(--page-accent);
  color: #fff;
}

body[data-test-key] .option-button__index {
  background: var(--page-accent-soft);
  color: var(--page-accent-deep);
}

body[data-test-key] .result-summary {
  background:
    radial-gradient(circle at top right, var(--page-accent-fog), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 242, 0.94));
}

body[data-test-key] .score-card__level,
body[data-test-key] .resource-card__tag,
body[data-test-key] .matrix-card__tone,
body[data-test-key] .callout-card__tone {
  background: var(--page-accent-soft);
  color: var(--page-accent-deep);
}

body[data-test-key] .resource-card__cta,
body[data-test-key] .test-card__cta {
  color: var(--page-accent-deep);
}

.danger-band {
  background: linear-gradient(180deg, rgba(255, 240, 232, 0.94), rgba(255, 252, 247, 0.92));
}

@media (max-width: 1080px) {
  .home-hero .hero-copy h1,
  .section-title h2 {
    max-width: none;
  }
}

/* Psychology site redesign pass */

body {
  background:
    radial-gradient(circle at 8% 11%, rgba(255, 196, 169, 0.78), transparent 17%),
    radial-gradient(circle at 89% 12%, rgba(172, 227, 214, 0.64), transparent 18%),
    radial-gradient(circle at 84% 78%, rgba(255, 221, 157, 0.72), transparent 18%),
    radial-gradient(circle at 18% 86%, rgba(255, 186, 205, 0.56), transparent 17%),
    radial-gradient(circle at 58% 38%, rgba(219, 232, 255, 0.42), transparent 24%),
    linear-gradient(180deg, #fffaf5 0%, #fff3ea 100%);
}

.site-header {
  backdrop-filter: blur(20px) saturate(150%);
  background: rgba(255, 249, 244, 0.8);
}

.home-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 1.25rem;
  align-items: start;
}

.home-hero .hero-copy,
.home-hero .hero-panel {
  border-radius: 38px;
}

.home-hero .hero-copy {
  box-shadow: 0 34px 72px -42px rgba(167, 96, 71, 0.36);
}

.home-hero .hero-copy::before {
  position: absolute;
  right: 1.4rem;
  top: 1.25rem;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(145deg, rgba(255, 205, 165, 0.72), rgba(255, 234, 213, 0.16));
  opacity: 0.88;
  transform: rotate(14deg);
  content: "";
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-fact {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(125, 103, 92, 0.12);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 36px -32px rgba(167, 96, 71, 0.44);
}

.hero-fact strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-strong);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.hero-fact span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-panel--routes {
  gap: 1rem;
  box-shadow: 0 30px 68px -42px rgba(167, 96, 71, 0.34);
}

.hero-panel__top {
  display: grid;
  gap: 0.3rem;
}

.hero-panel__caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-mood-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.mood-card {
  position: relative;
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  gap: 0.38rem;
  padding: 1.05rem 1rem 1.1rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.mood-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.44rem;
  border-radius: 999px;
  content: "";
}

.mood-card:hover,
.mood-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -30px rgba(125, 103, 92, 0.32);
}

.mood-card__eyebrow {
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mood-card__route {
  margin-top: auto;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.mood-card--blue {
  background:
    radial-gradient(circle at top right, rgba(204, 220, 255, 0.88), transparent 30%),
    linear-gradient(180deg, #eef4ff, #f9fbff);
}

.mood-card--blue::before {
  background: linear-gradient(90deg, #7c99eb 0%, #b0c2ff 100%);
}

.mood-card--green {
  background:
    radial-gradient(circle at top right, rgba(193, 236, 219, 0.84), transparent 30%),
    linear-gradient(180deg, #e8f8f0, #f8fdfa);
}

.mood-card--green::before {
  background: linear-gradient(90deg, #4eb794 0%, #8cd6bc 100%);
}

.mood-card--yellow {
  background:
    radial-gradient(circle at top right, rgba(255, 231, 174, 0.84), transparent 30%),
    linear-gradient(180deg, #fff3d8, #fffbf3);
}

.mood-card--yellow::before {
  background: linear-gradient(90deg, #d9982d 0%, #f0c567 100%);
}

.mood-card--peach {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 189, 0.84), transparent 30%),
    linear-gradient(180deg, #fff0e4, #fff9f4);
}

.mood-card--peach::before {
  background: linear-gradient(90deg, #e28b5a 0%, #f3b17c 100%);
}

.mood-card--rose {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 223, 0.88), transparent 30%),
    linear-gradient(180deg, #ffe9f0, #fff9fb);
}

.mood-card--rose::before {
  background: linear-gradient(90deg, #d87892 0%, #ef9db3 100%);
}

.mood-card--wide {
  grid-column: 1 / -1;
  min-height: 9rem;
}

.section-title {
  gap: 0.85rem;
}

.tests-grid {
  gap: 1.2rem;
  grid-auto-rows: minmax(17.2rem, auto);
}

.test-card {
  min-height: 19.5rem;
  padding: 1.45rem 1.4rem 1.35rem;
  box-shadow: 0 28px 58px -38px rgba(125, 103, 92, 0.28);
}

.test-card:hover,
.test-card:focus-visible {
  transform: translateY(-3px);
}

.test-card::after {
  position: absolute;
  right: -1.2rem;
  bottom: -1.4rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
}

.test-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.test-card__signals span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 103, 92, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.test-card__cta {
  margin-top: 0.25rem;
}

.split-grid {
  gap: 1.2rem;
}

.steps-list {
  gap: 1rem;
}

.step-item {
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(125, 103, 92, 0.1);
  box-shadow: 0 20px 38px -34px rgba(125, 103, 92, 0.34);
}

.step-item:nth-child(1) {
  background: linear-gradient(180deg, #eef4ff 0%, #fdfdff 100%);
}

.step-item:nth-child(2) {
  background: linear-gradient(180deg, #eaf8f1 0%, #fbfefc 100%);
}

.step-item:nth-child(3) {
  background: linear-gradient(180deg, #fff0e6 0%, #fffaf6 100%);
}

.step-index {
  width: 2.2rem;
  height: 2.2rem;
  box-shadow: 0 10px 18px -14px rgba(125, 103, 92, 0.42);
}

.danger-band {
  box-shadow: 0 28px 60px -40px rgba(177, 89, 77, 0.28);
}

body[data-test-key] .page-hero {
  gap: 1.2rem;
  align-items: stretch;
}

body[data-test-key] .page-hero .hero-copy,
body[data-test-key] .page-hero .panel,
body[data-test-key] .question-progress .panel,
body[data-test-key] .question-card,
body[data-test-key] .result-summary,
body[data-test-key] .score-card,
body[data-test-key] .detail-card,
body[data-test-key] .matrix-card,
body[data-test-key] .resource-card,
body[data-test-key] .callout-card {
  box-shadow: 0 24px 52px -38px rgba(125, 103, 92, 0.28);
}

body[data-test-key] .page-hero .panel {
  padding: 1.45rem;
}

body[data-test-key] .note-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.35rem;
  background: rgba(255, 255, 255, 0.74);
}

body[data-test-key] .note-list li::before {
  position: absolute;
  left: 0.75rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 0.34rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--page-accent) 0%, rgba(255, 255, 255, 0.95) 100%);
  content: "";
}

body[data-test-key] .progress-card {
  background:
    radial-gradient(circle at top right, var(--page-accent-fog), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 248, 0.95));
}

body[data-test-key] .progress-card__track {
  background: rgba(255, 255, 255, 0.7);
}

body[data-test-key] .question-card,
body[data-test-key] .result-summary {
  overflow: hidden;
  border: 0;
}

body[data-test-key] .question-card::before,
body[data-test-key] .result-summary::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.6rem;
  background: linear-gradient(90deg, var(--page-accent) 0%, var(--page-accent-deep) 100%);
  content: "";
}

body[data-test-key] .question-card__meta {
  justify-content: space-between;
}

body[data-test-key] .section-badge {
  border-radius: 14px;
}

body[data-test-key] .option-button {
  position: relative;
  padding: 1.05rem 1.1rem 1.05rem 1.2rem;
  border-radius: 22px;
  box-shadow: 0 18px 28px -24px rgba(125, 103, 92, 0.28);
}

body[data-test-key] .option-button::before {
  position: absolute;
  left: 0.75rem;
  top: 0.95rem;
  bottom: 0.95rem;
  width: 0.28rem;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background-color 180ms ease;
}

body[data-test-key] .option-button.is-selected::before {
  background: var(--page-accent);
}

body[data-test-key] .option-button__index {
  width: 2.05rem;
  height: 2.05rem;
}

body[data-test-key] .score-card,
body[data-test-key] .detail-card,
body[data-test-key] .matrix-card,
body[data-test-key] .resource-card,
body[data-test-key] .callout-card {
  border: 1px solid rgba(125, 103, 92, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

body[data-test-key] .detail-card__meter {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1080px) {
  .hero-facts,
  .hero-mood-grid {
    grid-template-columns: 1fr;
  }

  .mood-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .home-hero {
    gap: 1rem;
  }

  .home-hero .hero-copy::before,
  .test-card::after {
    display: none;
  }

  .hero-facts {
    margin-top: 1.25rem;
  }

  .test-card {
    min-height: auto;
  }

  body[data-test-key] .option-button {
    padding-left: 1rem;
  }
}

/* Layout reset for HearU home and test screens */

body[data-page="home"] {
  background-color: var(--bg-pastel-base, #f7f8fc);
  background-image:
    radial-gradient(ellipse 80% 60% at 85% 10%, var(--bg-pastel-a, #e3d5ff) 0%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 15% 90%, var(--bg-pastel-b, #c6e9d5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 55% at 10% 15%, var(--bg-pastel-c, #ffddbe) 0%, transparent 65%);
  background-attachment: fixed;
}

body[data-page="home"]::before {
  background-image: none;
  opacity: 0;
}

body[data-page="home"] .page {
  padding: 1.75rem 0 4rem;
}

.section-title--center {
  text-align: center;
}

.section-title--center p,
.section-title--center h2 {
  margin-left: auto;
  margin-right: auto;
}

.landing-intro {
  max-width: 860px;
  margin: 0 auto 2.3rem;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.landing-intro__eyebrow {
  margin: 0 0 0.9rem;
  color: #4a6cf7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-intro h1 {
  margin: 0;
  color: #1b1f3b;
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.landing-intro__lead {
  max-width: 760px;
  margin: 1rem auto 0;
  color: #61657a;
  font-size: 1.02rem;
}

.landing-intro__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4a6cf7;
  font-size: 0.76rem;
  font-weight: 700;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-test-card {
  position: relative;
  display: flex;
  min-height: 18.2rem;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.55rem 1.45rem;
  overflow: hidden;
  border: 1px solid #e6eaf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(39, 45, 74, 0.18);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-test-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.38rem;
  content: "";
}

.home-test-card:hover,
.home-test-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px -34px rgba(39, 45, 74, 0.22);
}

.home-test-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-test-card__state,
.home-test-card__ready {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.home-test-card__state {
  background: #f0f2f8;
  color: #41465e;
}

.home-test-card__ready {
  background: #e9fbf0;
  color: #1f9254;
}

.home-test-card h3 {
  margin: 0;
  color: #1b1f3b;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.home-test-card p {
  margin: 0;
  color: #6a6f82;
  font-size: 0.93rem;
}

.home-test-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.home-test-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.64rem;
  border-radius: 999px;
  background: #f5f7fb;
  color: #73798d;
  font-size: 0.73rem;
  font-weight: 600;
}

.home-test-card__cta {
  margin-top: 0.15rem;
  color: #1b1f3b;
  font-size: 0.88rem;
  font-weight: 700;
}

.home-test-card--depression::before {
  background: linear-gradient(90deg, #667fe0 0%, #9db0ff 100%);
}

.home-test-card--anxiety::before {
  background: linear-gradient(90deg, #3ea883 0%, #7fd6b5 100%);
}

.home-test-card--stress::before {
  background: linear-gradient(90deg, #d8952f 0%, #efc66d 100%);
}

.home-test-card--adhd::before {
  background: linear-gradient(90deg, #5b7fe7 0%, #f0a460 100%);
}

.home-test-card--self-esteem::before {
  background: linear-gradient(90deg, #d36f8f 0%, #ec9ea9 100%);
}

.home-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 1rem;
  margin: 2rem 0;
}

.home-guide__main,
.home-guide__side {
  padding: 1.45rem;
  border: 1px solid #e6eaf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(39, 45, 74, 0.18);
}

.home-guide__main h2,
.home-guide__side h3 {
  margin: 0;
  color: #1b1f3b;
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.04em;
}

.home-guide__main h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.home-guide__side h3 {
  font-size: 1.35rem;
}

.route-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.route-item {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e9edf6;
  border-radius: 16px;
  background: #f9fbff;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.route-item:hover,
.route-item:focus-visible {
  transform: translateY(-1px);
  border-color: #cfd8f6;
}

.route-item strong {
  color: #252b45;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.route-item span {
  color: #4a6cf7;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-guide__side .note-list li {
  background: #f9fbff;
  border: 1px solid #e9edf6;
  color: #61657a;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reading-card {
  padding: 1.35rem 1.3rem;
  border: 1px solid #e6eaf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(39, 45, 74, 0.16);
}

.reading-card h3 {
  margin: 0 0 0.75rem;
  color: #1b1f3b;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.reading-card p {
  margin: 0;
  color: #666b7f;
  font-size: 0.93rem;
}

body[data-page="home"] .faq-item,
body[data-page="home"] .panel,
body[data-page="home"] .danger-band {
  border-color: #e6eaf2;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(39, 45, 74, 0.16);
}

body[data-page="home"] .step-item {
  border-color: #e9edf6;
  box-shadow: none;
}

body[data-test-key] {
  background-color: var(--bg-pastel-base, #f7f8fc);
  background-image:
    radial-gradient(ellipse 80% 60% at 85% 10%, var(--bg-pastel-a, #e3d5ff) 0%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 15% 90%, var(--bg-pastel-b, #c6e9d5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 55% at 10% 15%, var(--bg-pastel-c, #ffddbe) 0%, transparent 65%);
  background-attachment: fixed;
}

body[data-test-key]::before {
  background-image: none;
  opacity: 0;
}

body[data-test-key] .page {
  padding: 1.6rem 0 4rem;
}

body[data-test-key] .shell {
  width: min(calc(100% - 2rem), 920px);
}

body[data-test-key] .page-hero,
body[data-test-key] .test-shell,
body[data-test-key] .split-grid {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

body[data-test-key] .page-hero {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

body[data-test-key] .hero-copy,
body[data-test-key] .panel,
body[data-test-key] .question-card,
body[data-test-key] .result-summary,
body[data-test-key] .score-card,
body[data-test-key] .detail-card,
body[data-test-key] .matrix-card,
body[data-test-key] .resource-card,
body[data-test-key] .callout-card {
  border: 1px solid #e6eaf2;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(39, 45, 74, 0.18);
}

body[data-test-key] .hero-copy::after,
body[data-test-key] .panel::after,
body[data-test-key] .card::after,
body[data-test-key] .question-card::after,
body[data-test-key] .result-summary::after {
  background: none;
}

body[data-test-key] .hero-copy {
  padding: 1.8rem 1.7rem;
}

body[data-test-key] .page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

body[data-test-key] .question-layout {
  grid-template-columns: 1fr;
}

body[data-test-key] .question-progress {
  position: static;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-test-key] .progress-card,
body[data-test-key] .question-card,
body[data-test-key] .result-summary {
  border: 1px solid #e6eaf2;
}

body[data-test-key] .question-card,
body[data-test-key] .result-summary {
  overflow: hidden;
}

body[data-test-key] .question-card::before,
body[data-test-key] .result-summary::before {
  height: 0.42rem;
}

body[data-test-key] .option-button {
  border-color: #e6eaf2;
  background: #fafbfe;
  box-shadow: none;
}

body[data-test-key] .option-button:hover,
body[data-test-key] .option-button:focus-visible {
  border-color: #ccd4ef;
  background: #fff;
}

body[data-test-key] .option-button.is-selected {
  border-color: #c8d4ff;
  background: linear-gradient(180deg, var(--page-accent-soft), #ffffff 92%);
}

body[data-test-key] .split-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 920px) {
  .home-card-grid,
  .reading-grid {
    grid-template-columns: 1fr;
  }

  .home-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .page,
  body[data-test-key] .page {
    padding-top: 1.1rem;
  }

  .landing-intro {
    margin-bottom: 1.8rem;
  }

  .landing-intro__badges {
    justify-content: flex-start;
  }

  .home-test-card {
    min-height: auto;
  }

  body[data-test-key] .question-progress {
    grid-template-columns: 1fr;
  }
}

/* Legacy-style HearU pages */

body[data-page="home"] .site-header,
body.legacy-theme .site-header {
  display: none;
}

body[data-page="home"] .page,
body.legacy-theme .page {
  padding: 0 0 4rem;
}

body[data-page="home"] .site-footer,
body.legacy-theme .site-footer {
  border-top: 1px solid #e6eaf2;
  background: #fff;
}

.music-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--bg-pastel-a, #e3d5ff) 70%, white) 0%,
      color-mix(in srgb, var(--bg-pastel-b, #c6e9d5) 70%, white) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 2px 14px rgba(120, 100, 170, 0.12);
  border-bottom: 1px solid rgba(155, 135, 217, 0.2);
}

.music-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3rem;
}

.music-bar__text {
  margin: 0;
  color: #2a2540;
  font-size: 0.88rem;
  font-weight: 600;
}

.music-bar__text span {
  margin-left: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6a5aa8;
  opacity: 0.85;
}

.music-bar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9b87d9 0%, #7a6ac5 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.music-bar__button:hover,
.music-bar__button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8a75cc 0%, #6959b3 100%);
  box-shadow: 0 4px 12px rgba(122, 106, 197, 0.35);
}

.home-legacy {
  padding-top: 3rem;
}

.legacy-theme {
  background:
    radial-gradient(circle at top, rgba(74, 108, 247, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 36%, #ffffff 100%);
}

.home-utility-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 2.8rem;
  padding: 0 1rem;
  margin-top: 0;
  border-bottom: 1px solid #e8eaf0;
  background: #fff;
  color: #666c7e;
  font-size: 0.82rem;
}

.home-utility-nav a {
  color: #555d70;
  text-decoration: none;
  transition: color 180ms ease;
}

.home-utility-nav a[aria-current="page"] {
  color: #1b1f3b;
  font-weight: 700;
}

.home-utility-nav a:hover,
.home-utility-nav a:focus-visible {
  color: #1b1f3b;
}

.home-legacy-header {
  padding: 3.4rem 1rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}

.home-legacy-header__logo {
  color: #1b1f3b;
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-legacy-header__logo span {
  color: #4a6cf7;
}

.home-legacy-header__slogan {
  margin: 0.55rem 0 0;
  color: #5e6678;
  font-size: 1rem;
}

.home-legacy-header__desc {
  max-width: 760px;
  margin: 0.9rem auto 0;
  color: #70778b;
  font-size: 0.94rem;
}

.home-legacy-header__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.home-legacy-header__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4a6cf7;
  font-size: 0.72rem;
  font-weight: 700;
}

.legacy-cards-section {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 0 2.2rem;
}

.legacy-cards-section h2,
.legacy-faq-section h2 {
  margin: 0 0 1.6rem;
  color: #1b1f3b;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.legacy-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legacy-card {
  position: relative;
  display: flex;
  min-height: 16.8rem;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1.5rem 1.35rem;
  overflow: hidden;
  border: 1px solid #e8eaf0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(74, 108, 247, 0.08);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.legacy-card:hover,
.legacy-card:focus-visible {
  transform: translateY(-2px);
  border-color: #cfd8ff;
  box-shadow: 0 14px 34px rgba(74, 108, 247, 0.12);
}

.legacy-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.legacy-card__category,
.legacy-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.26rem 0.64rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.legacy-card__category {
  background: #eef2f8;
  color: #4e5568;
}

.legacy-card__status {
  background: #e8fff0;
  color: #16924e;
}

.legacy-card h3 {
  margin: 0;
  color: #1b1f3b;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legacy-card__tools {
  color: #4a6cf7;
  font-size: 0.78rem;
  font-weight: 700;
}

.legacy-card p {
  margin: 0;
  color: #70778b;
  font-size: 0.86rem;
  line-height: 1.65;
}

.legacy-card__meta {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.legacy-card__meta span {
  color: #8f95a7;
  font-size: 0.72rem;
}

.legacy-card__arrow {
  color: #1b1f3b;
  font-size: 0.84rem;
  font-weight: 700;
}

.legacy-card--depression {
  box-shadow: 0 10px 30px rgba(102, 127, 224, 0.1);
}

.legacy-card--anxiety {
  box-shadow: 0 10px 30px rgba(62, 168, 131, 0.1);
}

.legacy-card--stress {
  box-shadow: 0 10px 30px rgba(216, 149, 47, 0.1);
}

.legacy-card--adhd {
  box-shadow: 0 10px 30px rgba(91, 127, 231, 0.1);
}

.legacy-card--self-esteem {
  box-shadow: 0 10px 30px rgba(211, 111, 143, 0.1);
}

.legacy-affiliate-note {
  margin: 0 auto;
  padding: 0.9rem 1rem 1.5rem;
  color: #8c92a3;
  font-size: 0.76rem;
  text-align: center;
}

/* ── 홈 블로그 섹션 ── */
.home-blog-section {
  margin: 0.4rem 0 0;
  padding: 2.8rem 1.4rem 2.6rem;
  background: linear-gradient(160deg, #f0eeff 0%, #eef6f3 100%);
  border-radius: 1.4rem;
}

.home-blog-section__header {
  margin-bottom: 2rem;
  text-align: center;
}

.home-blog-section__header h2 {
  margin: 0 0 0.5rem;
  color: #2c2a4a;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-blog-section__sub {
  margin: 0;
  color: #7472a0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(80, 70, 160, 0.07);
  text-decoration: none;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-blog-card:hover,
.home-blog-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(80, 70, 160, 0.13);
}

.home-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem 1.3rem 1.2rem;
  flex: 1;
}

.home-blog-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.home-blog-card__cat--depression  { background: #f3e8f3; color: #7a3d7a; }
.home-blog-card__cat--anxiety     { background: #e6eff9; color: #2a527f; }
.home-blog-card__cat--stress      { background: #fef3e8; color: #8a5010; }
.home-blog-card__cat--adhd        { background: #e8f5ec; color: #2a6838; }
.home-blog-card__cat--self-esteem { background: #fdf0e8; color: #8a4818; }
.home-blog-card__cat--general     { background: #eceaff; color: #4840b8; }

.home-blog-card__title {
  margin: 0;
  color: #1e1c38;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-card__desc {
  margin: 0;
  color: #5a586e;
  font-size: 0.84rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.home-blog-card__footer {
  padding: 0.75rem 1.3rem;
  border-top: 1px solid #f0eefc;
  background: #faf9ff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6258cc;
  letter-spacing: 0.01em;
}

.home-blog-more-wrap {
  margin-top: 1.8rem;
  text-align: center;
}

.home-blog-more {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #c8c2f0;
  color: #5a52c8;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(90, 82, 200, 0.08);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.home-blog-more:hover,
.home-blog-more:focus-visible {
  background: #5a52c8;
  border-color: #5a52c8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(90, 82, 200, 0.22);
}

.legacy-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.legacy-info-card,
.legacy-faq-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid #e8eaf0;
  border-radius: 1rem;
  background: #fff;
}

.legacy-info-card h2,
.legacy-faq-card h3 {
  margin: 0 0 0.85rem;
  color: #1b1f3b;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legacy-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding-left: 1rem;
  color: #697082;
  font-size: 0.87rem;
}

.legacy-faq-section {
  margin-bottom: 2rem;
}

.legacy-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legacy-faq-card p {
  margin: 0;
  color: #697082;
  font-size: 0.86rem;
}

.legacy-page {
  padding-top: 3rem;
}

.legacy-page-header {
  padding: 3.4rem 1rem 2.4rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}

.legacy-page-header__eyebrow {
  margin: 0 0 0.55rem;
  color: #4a6cf7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-page-header h1 {
  margin: 0;
  color: #1b1f3b;
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.legacy-page-header__desc {
  max-width: 760px;
  margin: 0.95rem auto 0;
  color: #6a7184;
  font-size: 0.95rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.legacy-page-header__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.legacy-page-header__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4a6cf7;
  font-size: 0.72rem;
  font-weight: 700;
}

.legacy-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.9fr);
  gap: 1rem;
  padding: 1.6rem 0 0;
  align-items: start;
}

.legacy-content-card {
  border: 1px solid #e8eaf0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(74, 108, 247, 0.08);
}

.legacy-content-card--main {
  padding: 1.5rem 1.4rem;
}

.legacy-content-card--main > :first-child {
  margin-top: 0;
}

.legacy-content-card--main h2 {
  margin: 1.75rem 0 0.7rem;
  color: #1b1f3b;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legacy-content-card--main p,
.legacy-content-card--main li {
  color: #697082;
  font-size: 0.9rem;
  line-height: 1.75;
}

.legacy-content-card--main p {
  margin: 0;
}

.legacy-content-card--main p + p {
  margin-top: 0.8rem;
}

.legacy-content-card--main ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}

.legacy-content-card--side {
  position: sticky;
  top: 4.2rem;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.legacy-side-block {
  padding: 1rem;
  border: 1px solid #edf0f7;
  border-radius: 0.85rem;
  background: #f7f8fc;
}

.legacy-side-block h2 {
  margin: 0 0 0.75rem;
  color: #1b1f3b;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legacy-side-block p {
  margin: 0;
  color: #697082;
  font-size: 0.86rem;
  line-height: 1.7;
}

.legacy-inline-link {
  color: #3150d7;
  font-weight: 700;
  text-decoration: none;
}

.legacy-inline-link:hover,
.legacy-inline-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .music-bar__inner {
    justify-content: space-between;
  }

  .music-bar__text {
    font-size: 0.8rem;
  }

  .home-utility-nav {
    gap: 0.65rem;
    padding: 0.45rem 1rem;
  }

  .home-legacy-header {
    padding-top: 2.6rem;
  }

  .legacy-card-grid,
  .legacy-info-grid,
  .legacy-faq-grid,
  .legacy-content-grid,
  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .legacy-card {
    min-height: auto;
  }

  .legacy-page-header {
    padding-top: 2.6rem;
  }

  .legacy-content-card--side {
    position: static;
  }
}

/* 관리자 — AI 스케줄 안내 */
.ai-schedule-note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  background: rgba(155, 135, 217, 0.08);
  border: 1px solid rgba(155, 135, 217, 0.2);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #5a4a8f;
  line-height: 1.6;
}

/* ═══ 관리자 대시보드 추가 섹션 ═══════════════════════ */

/* 스케줄러 상태 */
.sched-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(155, 135, 217, 0.15);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.sched-label { font-size: 0.8rem; color: #86819a; margin: 0 0 0.3rem; }
.sched-countdown {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #5a4a8f;
  margin: 0;
  letter-spacing: 0.02em;
}
.sched-next { font-size: 0.8rem; color: #86819a; margin: 0.3rem 0 0; }
.sched-toggle { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; user-select: none; }
.sched-toggle input { display: none; }
.sched-toggle-slider {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  background: #d1c8e8;
  border-radius: 13px;
  transition: background 0.2s ease;
}
.sched-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.sched-toggle input:checked + .sched-toggle-slider { background: linear-gradient(135deg, #9b87d9, #7a6ac5); }
.sched-toggle input:checked + .sched-toggle-slider::after { transform: translateX(20px); }
.sched-toggle-text { font-size: 0.9rem; color: #3d3555; }
.sched-toggle-text strong { color: #5a4a8f; }

.sched-runs-title { font-size: 0.85rem; color: #86819a; margin: 0 0 0.6rem; font-weight: 600; }
.sched-run {
  display: grid;
  grid-template-columns: 140px 80px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(155, 135, 217, 0.08);
  align-items: center;
}
.sched-run__time { color: #86819a; font-variant-numeric: tabular-nums; }
.sched-run__cat { color: #5a4a8f; font-weight: 600; }
.sched-run__status { color: #3d3555; word-break: keep-all; }
.sched-run--ok .sched-run__status { color: #2a6b3c; }
.sched-run--fail .sched-run__status { color: #a02a2a; }
.sched-run--skip .sched-run__status { color: #86819a; font-style: italic; }

/* R2 현황 */
.r2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.r2-stat { text-align: center; }
.r2-label { font-size: 0.8rem; color: #86819a; margin: 0 0 0.3rem; }
.r2-value { font-size: 1.4rem; font-weight: 700; color: #5a4a8f; margin: 0; }
.r2-bar { height: 8px; background: rgba(155, 135, 217, 0.12); border-radius: 4px; overflow: hidden; }
.r2-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9b87d9 0%, #7a6ac5 100%);
  width: 0%;
  transition: width 0.3s ease;
}
@media (max-width: 640px) {
  .r2-stats { grid-template-columns: 1fr 1fr; }
  .sched-run { grid-template-columns: 110px 60px 1fr; font-size: 0.78rem; }
}

/* IndexNow */
.indexnow-row {
  display: grid;
  grid-template-columns: 140px 80px 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.83rem;
  border-bottom: 1px solid rgba(155, 135, 217, 0.08);
  align-items: center;
}
.indexnow-time { color: #86819a; font-variant-numeric: tabular-nums; }
.indexnow-status { font-weight: 600; }
.indexnow-row.ok .indexnow-status { color: #2a6b3c; }
.indexnow-row.fail .indexnow-status { color: #a02a2a; }
.indexnow-url {
  color: #5a4a8f;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.indexnow-url:hover { text-decoration: underline; }

/* 트래픽 상위 페이지 */
.top-pages-list { display: flex; flex-direction: column; gap: 0; }
.top-page-row {
  display: grid;
  grid-template-columns: 36px 1fr 80px;
  gap: 0.75rem;
  padding: 0.55rem 0;
  align-items: center;
  border-bottom: 1px solid rgba(155, 135, 217, 0.08);
  font-size: 0.88rem;
}
.top-page-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(155, 135, 217, 0.15);
  color: #5a4a8f;
  font-weight: 700;
  font-size: 0.75rem;
}
.top-page-path {
  color: #3d3555;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-page-path:hover { text-decoration: underline; color: #5a4a8f; }
.top-page-visits {
  text-align: right;
  font-weight: 700;
  color: #5a4a8f;
  font-variant-numeric: tabular-nums;
}

/* SEO 점수 배지 */
.seo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.3rem;
}
.seo-badge.seo-a { background: #d9f0e0; color: #2a6b3c; }
.seo-badge.seo-b { background: #fef3d7; color: #8a5a20; }
.seo-badge.seo-c { background: #fcdada; color: #a02a2a; }

/* "준비 중" 배지 */
.badge-soon {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  background: rgba(155, 135, 217, 0.12);
  color: #86819a;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  vertical-align: middle;
}
.adsense-placeholder {
  color: #6b6680;
  font-size: 0.9rem;
  line-height: 1.7;
}
.adsense-placeholder a { color: #5a4a8f; text-decoration: underline; }

/* 관리자 공통 페이지네이션 */
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 1rem 0 0.25rem;
}
.admin-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a4a8f;
  background: transparent;
  border: 1px solid rgba(155, 135, 217, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-pager__btn:hover:not(.is-disabled):not(.is-current) {
  background: rgba(155, 135, 217, 0.1);
}
.admin-pager__btn.is-current {
  background: linear-gradient(135deg, #9b87d9 0%, #7a6ac5 100%);
  color: #fff;
  border-color: transparent;
  cursor: default;
}
.admin-pager__btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}
.admin-pager__dots { color: #a89bc8; font-weight: 600; padding: 0 0.2rem; }

.muted { color: #86819a; font-weight: 400; font-size: 0.78rem; margin-left: 0.5rem; }

/* 조회수 배지 */
.view-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(79, 122, 97, 0.12);
  color: #2a6b3c;
  margin-left: 0.3rem;
  font-variant-numeric: tabular-nums;
}

/* ── SBTI 트렌드 배너 (홈 페이지) ── */
.sbti-trend-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.35rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 209, 232, 0.55) 0%, rgba(214, 217, 255, 0.5) 100%);
  border: 1px solid rgba(200, 180, 255, 0.35);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 4px 20px -8px rgba(180, 150, 255, 0.25);
}

.sbti-trend-banner:hover,
.sbti-trend-banner:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(180, 150, 255, 0.55);
  box-shadow: 0 8px 28px -10px rgba(180, 150, 255, 0.35);
}

.sbti-trend-banner__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #7a3a8b;
  white-space: nowrap;
}

.sbti-trend-banner__text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.sbti-trend-banner__text strong {
  color: var(--text-strong);
  font-weight: 700;
}

.sbti-trend-banner__cta {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6a3a9b;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .sbti-trend-banner {
    gap: 0.6rem;
    padding: 0.85rem 1rem;
  }
  .sbti-trend-banner__cta {
    display: none;
  }
}
