/* 톡온도 — 공통 스타일 */
:root {
  --bg: #f6f6fb;
  --bg-soft: #eeeef8;
  --surface: #ffffff;
  --surface-2: #f9f9fd;
  --text: #17172b;
  --text-2: #4a4a63;
  --muted: #7a7a93;
  --line: #e6e6f0;
  --primary: #6d5dfc;
  --primary-ink: #5443e8;
  --primary-soft: #efedff;
  --accent: #ff6b6b;
  --accent-soft: #ffeded;
  --mint: #12b886;
  --mint-soft: #e6f8f1;
  --gold: #f5a524;
  --gold-soft: #fff4dd;
  --heat-0: #ececf5;
  --shadow: 0 1px 2px rgba(23, 23, 43, 0.04), 0 8px 24px rgba(23, 23, 43, 0.06);
  --shadow-lg: 0 20px 50px rgba(54, 40, 160, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0e1a;
    --bg-soft: #16162a;
    --surface: #17172b;
    --surface-2: #1d1d35;
    --text: #f1f1fa;
    --text-2: #c4c4d8;
    --muted: #8e8ea8;
    --line: #2a2a45;
    --primary: #8b7dff;
    --primary-ink: #a99fff;
    --primary-soft: #262147;
    --accent: #ff8787;
    --accent-soft: #3a2025;
    --mint: #38d9a9;
    --mint-soft: #15332b;
    --gold: #ffc14d;
    --gold-soft: #3a2f17;
    --heat-0: #23233b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e0e1a;
  --bg-soft: #16162a;
  --surface: #17172b;
  --surface-2: #1d1d35;
  --text: #f1f1fa;
  --text-2: #c4c4d8;
  --muted: #8e8ea8;
  --line: #2a2a45;
  --primary: #8b7dff;
  --primary-ink: #a99fff;
  --primary-soft: #262147;
  --accent: #ff8787;
  --accent-soft: #3a2025;
  --mint: #38d9a9;
  --mint-soft: #15332b;
  --gold: #ffc14d;
  --gold-soft: #3a2f17;
  --heat-0: #23233b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary-ink);
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p {
  margin: 0 0 1em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap.narrow {
  max-width: 760px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}

/* ── 헤더/푸터 ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo svg {
  width: 30px;
  height: 30px;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.nav .cta-link {
  background: var(--primary);
  color: #fff;
}
.nav .cta-link:hover {
  background: var(--primary-ink);
  color: #fff;
}
@media (max-width: 520px) {
  .nav .hide-sm {
    display: none;
  }
}
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 0 48px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
}
.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 0 0 6px;
}

/* ── 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--surface-2);
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn.primary:hover {
  background: var(--primary-ink);
}
.btn.ghost {
  background: transparent;
}
.btn.sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 0.88rem;
  border-radius: 11px;
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

/* ── 카드 ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
@media (max-width: 560px) {
  .card {
    padding: 20px 16px;
    border-radius: 18px;
  }
}
.card h3 {
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -6px 0 18px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-ink);
  background: var(--primary-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ── 히어로 ───────────────────────────────────── */
.hero {
  position: relative;
  padding: 44px 0 24px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -200px -10% auto;
  height: 520px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(closest-side at 80% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 1.08rem;
  color: var(--text-2);
  margin-bottom: 22px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 999px;
}
@media (max-width: 560px) {
  .hero {
    padding-top: 22px;
  }
  .hero h1 {
    font-size: 1.95rem;
    margin-bottom: 10px;
  }
  .hero .lead {
    font-size: 0.98rem;
    margin-bottom: 14px;
  }
  .hero .eyebrow {
    margin-bottom: 10px;
  }
  .trust {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .trust::-webkit-scrollbar {
    display: none;
  }
  .trust li {
    flex: none;
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* ── 업로드 ───────────────────────────────────── */
.uploader {
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 24px 16px;
  border: 2px dashed color-mix(in srgb, var(--primary) 40%, var(--line));
  border-radius: 16px;
  background: var(--primary-soft);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 10%);
}
.dropzone.drag {
  transform: scale(1.01);
}
.dropzone .icon {
  font-size: 2.4rem;
  line-height: 1;
}
.dropzone strong {
  font-size: 1.08rem;
}
@media (max-width: 560px) {
  .dropzone {
    min-height: 150px;
  }
}
.dropzone input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.uploader .or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 16px 0 12px;
}
.uploader .or::before,
.uploader .or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.paste-box {
  margin-top: 10px;
}
.paste-box summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 0;
}
.paste-box textarea {
  width: 100%;
  min-height: 120px;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  resize: vertical;
  font-size: 0.9rem;
}
.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.privacy-note b {
  color: var(--text);
}
.error-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
}
.error-box a {
  font-weight: 700;
}

/* 분석 중 오버레이 */
.progress {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.progress[hidden] {
  display: none;
}
.progress .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 260px;
}
.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounce 1s infinite ease-in-out;
}
.dots span:nth-child(2) {
  animation-delay: 0.15s;
  background: var(--accent);
}
.dots span:nth-child(3) {
  animation-delay: 0.3s;
  background: var(--mint);
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* 히어로 오른쪽 미리보기 말풍선 */
.preview-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.bubble.me {
  align-self: flex-end;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.you {
  border-bottom-left-radius: 6px;
}
.bubble .who {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 2px;
}
.bubble b {
  font-size: 1.05rem;
}

/* ── 섹션 공통 ─────────────────────────────────── */
.section {
  padding: 44px 0 8px;
}
.section-title {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-lead {
  color: var(--text-2);
  margin-bottom: 22px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 20px;
}
.feature .em {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.feature p {
  color: var(--text-2);
  font-size: 0.93rem;
  margin: 0;
}
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  position: relative;
  padding: 22px 20px 20px 64px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.steps h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-2);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 14px 32px 14px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  color: var(--text-2);
  padding: 0 0 16px;
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .link-cards {
    grid-template-columns: 1fr;
  }
}
.link-card {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}
.link-card .t {
  font-weight: 800;
  margin-bottom: 4px;
  display: block;
}
.link-card .d {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── 리포트 ───────────────────────────────────── */
.report {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 20px;
}
.report > *,
.two-col > *,
.stat-grid > *,
.awards > *,
.types > * {
  min-width: 0;
}
.report[hidden] {
  display: none;
}
.report-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #9b5de5 55%, var(--accent) 120%);
  color: #fff;
  border: 0;
}
.report-head h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  font-weight: 850;
  margin-bottom: 6px;
}
.report-head .period {
  opacity: 0.88;
  margin-bottom: 18px;
}
.report-head .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.report-head .btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: none;
}
.report-head .btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.report-head .btn.white {
  background: #fff;
  color: var(--primary-ink);
  border-color: #fff;
}
.range-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: -6px -2px 16px;
  padding: 2px;
}
.range-chips::-webkit-scrollbar {
  display: none;
}
.rchip {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.rchip.on {
  background: #fff;
  color: var(--primary-ink);
  border-color: #fff;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 0 6px;
}
.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .stat-grid,
  .stat-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  padding: 18px;
}
.stat .label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}
.stat .value {
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 2px 0;
}
.stat .value small {
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 2px;
}
.stat .hint {
  font-size: 0.82rem;
  color: var(--text-2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* 온도계 */
.temp-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 620px) {
  .temp-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
.temp-value {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.temp-label {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 8px 0 4px;
}
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.comp-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  text-align: left;
}
.comp-list .row {
  display: grid;
  grid-template-columns: 92px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}
.comp-list .row b {
  text-align: right;
  font-size: 0.85rem;
}

.versus {
  display: flex;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}
.versus > div {
  display: flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
  min-width: 0;
}
.versus > div:last-child {
  justify-content: flex-end;
}
.vs-names {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}
.compare-table thead th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.win {
  color: var(--primary-ink);
  font-weight: 800;
}

/* 지분 막대 */
.share-list {
  display: grid;
  gap: 10px;
}
.share-row {
  display: grid;
  grid-template-columns: minmax(64px, 120px) minmax(0, 1fr) 7.4rem;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
}
.share-row .nm {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-row .bar {
  height: 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.share-row .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.share-row .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  font-size: 0.86rem;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0;
}

/* 시상식 */
.awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 820px) {
  .awards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .awards {
    gap: 8px;
  }
  .award {
    padding: 13px 12px;
  }
  .award .who {
    font-size: 1.02rem;
  }
}
@media (max-width: 330px) {
  .awards {
    grid-template-columns: 1fr;
  }
}
.award {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.award .em {
  font-size: 1.7rem;
  line-height: 1;
}
.award .tt {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-ink);
  margin-top: 8px;
}
.award .who {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 2px 0;
}
.award .val {
  font-size: 0.84rem;
  color: var(--text-2);
}
.award .ru {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.award.top {
  background: linear-gradient(160deg, var(--gold-soft), var(--surface-2));
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 10px;
  margin: 8px 0 18px;
}
.podium .p {
  text-align: center;
}
.podium .p .nm {
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium .p .blk {
  border-radius: 14px 14px 6px 6px;
  color: #fff;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
  font-size: 1.4rem;
}
.podium .p .blk small {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.9;
}

/* 캐릭터 */
.types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .types {
    grid-template-columns: 1fr;
  }
}
.type-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.type-card .em {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--primary-soft);
}
.type-card .nm {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}
.type-card .ty {
  font-weight: 850;
  font-size: 1.08rem;
  margin: 0 0 4px;
}
.type-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 0 0 6px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.chip.gray {
  background: var(--bg-soft);
  color: var(--text-2);
}

/* 차트 */
.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
/* 히트맵 */
.heat {
  display: grid;
  grid-template-columns: 18px repeat(24, minmax(0, 1fr));
  gap: 3px;
  max-width: 760px;
  margin: 0 auto;
  align-items: center;
}
.heat i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--heat-0);
}
.heat i[style] {
  background: color-mix(in srgb, var(--primary) calc(var(--a) * 100%), var(--heat-0));
}
.heat .hl,
.heat .hx {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1;
}
.heat .hx {
  text-align: left;
  white-space: nowrap;
  padding-top: 3px;
}
/* 막대 그래프 */
.bars .plot {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 140px;
  border-bottom: 1px solid var(--line);
}
.bars.tall .plot {
  height: 180px;
}
.bars .col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.bars .col i {
  display: block;
  width: 72%;
  margin: 0 auto;
  border-radius: 3px 3px 0 0;
}
.bars .col.stack i {
  width: 76%;
  border-radius: 0;
}
.bars .col.stack i:last-child {
  border-radius: 3px 3px 0 0;
}
.bars .col.stack {
  flex-direction: column-reverse;
  justify-content: flex-start;
}
.bars .xl {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}
.bars .xl span {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}
.chart.gauge {
  max-width: 220px;
  margin: 0 auto;
}
.chart text {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--font);
}
.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.84rem;
  color: var(--text-2);
  margin-top: 10px;
}
.insights {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.insights li {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

/* 단어 */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.word-cloud span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 800;
  line-height: 1.4;
}
.word-cloud span em {
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.6;
  margin-left: 4px;
  font-weight: 700;
}
.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.5rem;
}
.emoji-row span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.emoji-row small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.typo-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.typo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.typo-list s {
  color: var(--accent);
  text-decoration-thickness: 2px;
}
.typo-list .ok {
  color: var(--mint);
  font-weight: 800;
}
.typo-list .cnt {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.records {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .records {
    grid-template-columns: 1fr;
  }
}
.record {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.record .k {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.record .v {
  font-size: 1.12rem;
  font-weight: 850;
  margin: 2px 0;
}
.record .d {
  font-size: 0.88rem;
  color: var(--text-2);
}
.quote {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
}

.cta-card {
  text-align: center;
  background: linear-gradient(160deg, var(--primary-soft), var(--surface));
}
.cta-card .btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.notice {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
}

/* 기록 */
.history {
  margin-top: 14px;
}
.history h4 {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.history a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
}
.history a span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

/* 모달 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 25, 0.6);
}
.modal[hidden] {
  display: none;
}
.modal .box {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.modal img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.modal .row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.modal .row .btn {
  flex: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 130;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 인앱 브라우저 안내 */
.inapp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 16px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  font-size: 0.86rem;
  line-height: 1.45;
}
.inapp span {
  flex: 1 1 220px;
}
@media (min-width: 1072px) {
  .inapp {
    max-width: 1008px;
    margin: 10px auto 0;
  }
}

/* 광고 */
.ad-wrap {
  margin: 8px 0;
  min-height: 100px;
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

/* ── 아티클(가이드) ───────────────────────────── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 24px 0 10px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.article {
  padding: 32px clamp(18px, 4vw, 44px);
}
.article h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}
.article .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.article h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  padding-top: 0.2em;
}
.article h3 {
  font-size: 1.12rem;
  margin-top: 1.6em;
}
.article p,
.article li {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.8;
}
.article ul,
.article ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.article li {
  margin-bottom: 0.35em;
}
.article strong {
  color: var(--text);
}
.article .tldr {
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.article .tldr p,
.article .tldr li {
  color: var(--text);
  margin-bottom: 0.3em;
}
.article .tip {
  background: var(--mint-soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}
.article .tip p {
  margin: 0;
  color: var(--text);
}
.article .warn {
  background: var(--gold-soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}
.article .warn p {
  margin: 0;
  color: var(--text);
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 22px;
  font-size: 0.94rem;
}
.article th,
.article td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article th {
  background: var(--surface-2);
  font-weight: 800;
  color: var(--text);
}
.article td {
  color: var(--text-2);
}
.article .toc {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 24px;
  background: var(--surface-2);
}
.article .toc ol {
  margin: 6px 0 0;
}
.article .toc a {
  text-decoration: none;
}
.article .toc a:hover {
  text-decoration: underline;
}
.article .cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #9b5de5);
  color: #fff;
}
.article .cta-inline p {
  color: #fff;
  margin: 0;
  font-weight: 700;
}
.article .cta-inline .btn {
  background: #fff;
  color: var(--primary-ink);
  border-color: #fff;
}
figure.shot {
  margin: 20px 0 26px;
}
figure.shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
figure.shot.narrow img {
  max-width: 420px;
  margin: 0 auto;
}
figure.shot figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.shot-pair figure.shot {
  margin: 0;
}
@media (max-width: 560px) {
  .shot-pair {
    grid-template-columns: 1fr;
  }
}
.related {
  margin-top: 24px;
}
.related h2 {
  font-size: 1.15rem;
}
.steps-list {
  counter-reset: s;
  list-style: none;
  padding-left: 0 !important;
}
.steps-list > li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
}
.steps-list > li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.86em;
  font-weight: 700;
  color: var(--text);
}

/* 공유 페이지 */
.share-hero {
  padding: 28px 0 8px;
  text-align: center;
}
.share-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .report-actions,
  .ad-wrap,
  .cta-card {
    display: none !important;
  }
}
