/*
 * 내 귀에 캔디 (Ear Candy) — 공용 디자인 시스템
 * Android 앱 Theme.kt(딥 블랙 #0B0D10 + 라임 #D8FF3E + 좌/우 유령 #FF8A5B/#5BD0F0) 1:1 계승
 */
:root {
  --bg: #0b0d10;
  --surface-low: #101318;
  --surface: #15181e;
  --surface-high: #1e222a;
  --ink: #eef1f5;
  --ink-soft: #cfd6e3;
  --muted: #9aa3b2;
  --lime: #d8ff3e;
  --lime-hover: #e5ff75;
  --lime-dim: #3b4413;
  --lime-tint: rgba(216, 255, 62, 0.12);
  --ear-left: #ff8a5b;
  --ear-right: #5bd0f0;
  --ghost-blue: #6ea8ff;
  --danger: #ff6b6b;
  --outline: #3a414d;
  --outline-subtle: #242933;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-display: 'Outfit', 'Pretendard Variable', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1120px;
  --header-h: 64px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(216, 255, 62, 0.085), transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  color: var(--ink);
  font: 16px/1.72 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--lime);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a:hover {
  color: var(--lime-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--lime);
  color: #0b0d10;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── 상단 헤더 ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 13, 16, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-high);
  border: 1px solid rgba(216, 255, 62, 0.35);
  display: grid;
  place-items: center;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.brand-title {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-tint);
  border-color: rgba(216, 255, 62, 0.28);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #101318;
  border-bottom: 1px solid var(--outline);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  padding: 14px 20px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.mobile-drawer a[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-tint);
  font-weight: 600;
}

/* ── 버튼 · 칩 · 배지 ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lime);
  color: #0b0d10;
  border-color: var(--lime);
}

.btn-primary:hover {
  background: var(--lime-hover);
  color: #0b0d10;
}

.btn-secondary {
  background: var(--surface-high);
  color: var(--ink);
  border-color: var(--outline);
}

.btn-secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--outline-subtle);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--outline);
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-icon {
  min-height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  color: var(--ink-soft);
  font: 500 13px/1 var(--font-sans);
  cursor: pointer;
  transition: all 0.14s ease;
}

.chip:hover {
  border-color: rgba(216, 255, 62, 0.5);
  color: var(--ink);
}

.chip.active,
.chip[aria-pressed="true"] {
  background: var(--lime-dim);
  border-color: var(--lime);
  color: var(--lime);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--outline);
  background: var(--surface-high);
  color: var(--ink-soft);
}

.tag-lime {
  border-color: rgba(216, 255, 62, 0.4);
  background: var(--lime-tint);
  color: var(--lime);
}

.tag-warn {
  border-color: rgba(255, 138, 91, 0.45);
  background: rgba(255, 138, 91, 0.12);
  color: var(--ear-left);
}

.tag-blue {
  border-color: rgba(91, 208, 240, 0.4);
  background: rgba(91, 208, 240, 0.12);
  color: var(--ear-right);
}

/* ── 타이포그래피 & 섹션 ─────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.14;
  font-weight: 800;
}

h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.24;
  font-weight: 750;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.muted {
  color: var(--muted);
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--outline-subtle);
  scroll-margin-top: var(--header-h);
}

.section-tight {
  padding: 52px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-top: 10px;
}

.section-head p {
  margin-top: 12px;
  font-size: 16px;
}

/* ── 패널 · 카드 · 그리드 ────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-elevated {
  background: linear-gradient(180deg, rgba(30, 34, 42, 0.72), rgba(21, 24, 30, 0.96));
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ── 히어로 ─────────────────────────────────────── */
.hero {
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-subtle);
}

.fact-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
}

.fact-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* 안드로이드 실제 스크린샷 베젤 */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(312px, 100%);
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(155deg, #2b323f, #111419 48%, #222731);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(216, 255, 62, 0.08);
}

.phone-frame img {
  width: 100%;
  border-radius: 25px;
  display: block;
}

.phone-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ── 인터랙티브 스튜디오 (5점 + 시소 + 유령 + A/B) ─── */
.studio-shell {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

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

.studio-canvas-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--outline-subtle);
  background: #0e1116;
}

.studio-canvas {
  display: block;
  width: 100%;
  height: 290px;
  touch-action: none;
}

.studio-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

.legend-dash {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2px dashed currentColor;
  margin-right: 6px;
  vertical-align: 3px;
}

.studio-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--outline-subtle);
}

.control-box {
  background: var(--surface-low);
  border: 1px solid var(--outline-subtle);
  border-radius: 14px;
  padding: 16px;
}

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

.point-readout {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tilt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.tilt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-high);
  border: 1px solid var(--outline-subtle);
  accent-color: var(--lime);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid #0b0d10;
  box-shadow: 0 0 0 2px rgba(216, 255, 62, 0.25);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid #0b0d10;
}

.tilt-meta {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.audio-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--outline-subtle);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font-sans);
  cursor: pointer;
}

.segmented button.active {
  background: var(--lime);
  color: #0b0d10;
}

.vol-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.vol-inline input[type="range"] {
  max-width: 150px;
}

.share-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--outline-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.field-input {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--ink);
  font: 13px/1 var(--font-sans);
  min-width: 160px;
  flex: 1;
}

.field-input::placeholder {
  color: #6b7485;
}

/* ── 철학 비교 / 피처 카드 / 스크린샷 갤러리 ─────── */
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
  font-weight: 700;
}

.screen-card {
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.screen-card img {
  width: 180px;
  border-radius: 18px;
  border: 1px solid var(--outline);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.screen-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.screen-card li + li {
  margin-top: 6px;
}

/* ── 표 · 콜아웃 · 코드 ─────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--outline-subtle);
  border-radius: 14px;
  background: var(--surface-low);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--outline-subtle);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--lime);
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
}

.callout {
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  font-size: 14px;
  color: var(--ink-soft);
}

.callout-lime {
  border-color: rgba(216, 255, 62, 0.35);
  background: rgba(216, 255, 62, 0.06);
}

.callout-warn {
  border-color: rgba(255, 138, 91, 0.4);
  background: rgba(255, 138, 91, 0.08);
}

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

pre, code {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  background: var(--surface-high);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--lime);
}

pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #080a0d;
  border: 1px solid var(--outline-subtle);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── 가이드 전용 레이아웃 ────────────────────────── */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.guide-toc a {
  border: 1px solid var(--outline-subtle);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}

.guide-toc a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.guide-section {
  padding: 46px 0;
  border-top: 1px solid var(--outline-subtle);
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.guide-section h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin-bottom: 12px;
}

.guide-section h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 17px;
}

.guide-section p + p {
  margin-top: 12px;
}

.guide-panel {
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0;
}

.guide-panel svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.guide-figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.lab-sliders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.slider-field label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.slider-field output {
  font-family: var(--font-mono);
  color: var(--lime);
  font-weight: 600;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--outline-subtle);
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 15px;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--lime);
  flex-shrink: 0;
}

/* ── 로드맵 ─────────────────────────────────────── */
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-step {
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
  border-radius: 14px;
  padding: 16px;
}

.roadmap-step.done {
  border-color: rgba(216, 255, 62, 0.45);
  background: linear-gradient(180deg, rgba(216, 255, 62, 0.07), var(--surface));
}

.roadmap-step.next {
  border-color: rgba(91, 208, 240, 0.4);
}

.roadmap-step h3 {
  font-size: 15px;
  margin-top: 8px;
}

.roadmap-step p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── 푸터 & 토스트 ──────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--outline-subtle);
  padding: 42px 0 54px;
  margin-top: 40px;
  background: rgba(10, 12, 16, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-disclaimer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-subtle);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #0b0d10;
  padding: 11px 18px;
  border-radius: 999px;
  font: 600 13px/1 var(--font-sans);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

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

/* ── 반응형 ─────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid,
  .studio-controls,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .grid-2,
  .grid-3,
  .lab-sliders {
    grid-template-columns: 1fr;
  }
  .screen-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .screen-card img {
    width: min(220px, 100%);
    margin: 0 auto;
  }
  .hero {
    padding: 36px 0 48px;
  }
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .fact-val {
    font-size: 16px;
  }
  .section {
    padding: 52px 0;
  }
  .wrap {
    padding: 0 16px;
  }
  .studio-shell,
  .panel,
  .panel-elevated {
    padding: 16px;
  }
  .studio-canvas {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .roadmap-list,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }
  .site-header,
  .mobile-drawer,
  .hero-actions,
  .audio-dock,
  .share-inline,
  .guide-toc,
  .nav-toggle,
  .toast {
    display: none !important;
  }
  .panel,
  .guide-panel,
  .studio-shell,
  .pillar-card {
    background: #ffffff;
    border-color: #cccccc;
    box-shadow: none;
    break-inside: avoid;
  }
  h1, h2, h3, p, td, th, .muted {
    color: #111111 !important;
  }
}
