/* ==========================================================================
   MonsterLab — styles
   ========================================================================== */

:root {
  --bg:          #0a0e13;
  --bg-alt:      #0e131a;
  --surface:     #141b24;
  --surface-2:   #1a222d;
  --border:      #232e3b;
  --text:        #e7edf3;
  --text-soft:   #9aa8b8;
  --text-dim:    #7d8b9d;   /* 본문 배경 대비 5.6:1 */

  --accent:      #6ee7a8;
  --accent-2:    #a78bfa;
  --accent-ink:  #052014;
  --accent-rgb:  110 231 168;
  --accent2-rgb: 167 139 250;
  --btn-grad-2:  #4fd39a;

  --header-bg:   rgba(10, 14, 19, .72);
  --overlay-bg:  rgba(10, 14, 19, .97);
  --bar-bg:      rgba(10, 14, 19, .5);
  --shadow-lg:   rgba(0, 0, 0, .95);
  --error:       #ff9d9d;

  color-scheme:  dark;

  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR",
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ── Light theme ──────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme:  light;

  --bg:          #fbfcfd;
  --bg-alt:      #f1f5f9;
  --surface:     #ffffff;
  --surface-2:   #f4f7fa;
  --border:      #dfe6ee;
  --text:        #0e1721;
  --text-soft:   #4b5a6b;   /* 6.9:1 */
  --text-dim:    #5f7186;   /* 4.9:1 — 작은 글씨도 AA */

  --accent:      #0a7a52;   /* 텍스트로도 5.2:1 */
  --accent-2:    #6d4ae0;
  --accent-ink:  #ffffff;
  --accent-rgb:  10 122 82;
  --accent2-rgb: 109 74 224;
  --btn-grad-2:  #0a6b48;

  --header-bg:   rgba(251, 252, 253, .82);
  --overlay-bg:  rgba(251, 252, 253, .97);
  --bar-bg:      rgba(241, 245, 249, .75);
  --shadow-lg:   rgba(15, 23, 32, .16);
  --error:       #b3261e;
}

:root[data-theme="light"] .hero-glow { opacity: .6; }
:root[data-theme="light"] .logo-mark,
:root[data-theme="light"] .to-top { box-shadow: 0 12px 26px -16px rgb(var(--accent-rgb) / .75); }

/* ── 포인트 컬러 프리셋 ───────────────────────────────────────────────────
   기본값(민트)은 :root / :root[data-theme="light"]에 있습니다.
   아래 두 묶음은 서로 다른 변수를 덮어쓰고, light + 프리셋 조합은
   마지막 묶음(명시도 높음)이 이깁니다.                                    */
:root[data-accent="violet"] {
  --accent:      #a78bfa;
  --accent-2:    #6ee7a8;
  --accent-ink:  #1b0a3d;
  --accent-rgb:  167 139 250;
  --accent2-rgb: 110 231 168;
  --btn-grad-2:  #8b5cf6;
}
:root[data-accent="ocean"] {
  --accent:      #7dd3fc;
  --accent-2:    #a78bfa;
  --accent-ink:  #062231;
  --accent-rgb:  125 211 252;
  --accent2-rgb: 167 139 250;
  --btn-grad-2:  #38bdf8;
}
:root[data-accent="amber"] {
  --accent:      #fcd34d;
  --accent-2:    #a78bfa;
  --accent-ink:  #2b1d02;
  --accent-rgb:  252 211 77;
  --accent2-rgb: 167 139 250;
  --btn-grad-2:  #fbbf24;
}

/* 라이트 테마는 밝은 배경에서 읽히도록 더 진한 색 + 흰 글자 */
:root[data-theme="light"][data-accent="violet"] {
  --accent:      #6d4ae0;   /* 5.5:1 */
  --accent-2:    #0b7a9c;
  --accent-ink:  #ffffff;
  --accent-rgb:  109 74 224;
  --accent2-rgb: 11 122 156;
  --btn-grad-2:  #5b34d6;
}
:root[data-theme="light"][data-accent="ocean"] {
  --accent:      #0b6fc4;   /* 5.0:1 */
  --accent-2:    #7c3aed;
  --accent-ink:  #ffffff;
  --accent-rgb:  11 111 196;
  --accent2-rgb: 124 58 237;
  --btn-grad-2:  #0a5ea8;
}
:root[data-theme="light"][data-accent="amber"] {
  --accent:      #b45309;   /* 4.9:1 */
  --accent-2:    #7c3aed;
  --accent-ink:  #ffffff;
  --accent-rgb:  180 83 9;
  --accent2-rgb: 124 58 237;
  --btn-grad-2:  #a04a06;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: inherit; text-decoration: none; }

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

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

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

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

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: .95rem;
  font-weight: 900;
}
.logo-text { letter-spacing: -.02em; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

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

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lang-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.lang-icon { font-size: .9rem; }
/* ── 테마 선택 (버튼 3개) ───────────────────────────────────────────────── */
.theme-set {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.theme-opt {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  font: inherit;
  font-size: .95rem;
  line-height: 1;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  opacity: .5;
  transition: background .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.theme-opt:hover { opacity: 1; background: var(--surface-2); }
.theme-opt[aria-pressed="true"] {
  opacity: 1;
  background: rgb(var(--accent-rgb) / .18);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .55);
}
.nav-theme { display: none; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 11px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(64px, 12vw, 130px) 0 clamp(48px, 8vw, 90px); overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -280px; left: 50%;
  width: min(1000px, 130vw);
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(45% 55% at 32% 45%, rgb(var(--accent-rgb) / .22), transparent 70%),
    radial-gradient(42% 52% at 70% 35%, rgb(var(--accent2-rgb) / .20), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.hero-inner .stats { grid-column: 1 / -1; }

/* ── Hero product preview ─────────────────────────────────────────────── */
.hero-preview { min-width: 0; }
.preview-window {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -50px var(--shadow-lg), 0 0 0 1px rgb(var(--accent-rgb) / .07);
}
.preview-window::after {
  content: "";
  position: absolute;
  inset: -60% 25% 55% -25%;
  background: radial-gradient(closest-side, rgb(var(--accent2-rgb) / .18), transparent);
  pointer-events: none;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--border);
}
.pv-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; opacity: .55; }
.pv-dot:nth-child(2) { background: #febc2e; }
.pv-dot:nth-child(3) { background: #28c840; }
.preview-url {
  margin-left: 10px;
  padding: 3px 12px;
  font-size: .74rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.preview-body { position: relative; padding: 20px 20px 22px; }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.preview-chip {
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 650;
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .1);
  border: 1px solid rgb(var(--accent-rgb) / .26);
  border-radius: 999px;
}
.preview-count { font-size: .75rem; color: var(--text-dim); }
.preview-q { margin: 0 0 14px; font-size: .98rem; font-weight: 600; }
.preview-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-opt {
  padding: 9px 12px;
  font-size: .85rem;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.preview-opt.is-correct {
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -14px rgb(var(--accent-rgb) / .9);
}
.preview-track { height: 6px; margin: 18px 0 14px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.preview-fill {
  display: block;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}
.preview-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-tag {
  padding: 3px 10px;
  font-size: .72rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.preview-caption { margin: 14px 0 0; font-size: .78rem; color: var(--text-dim); text-align: center; }

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .09);
  border: 1px solid rgb(var(--accent-rgb) / .28);
  border-radius: 999px;
}

.lead { font-size: clamp(1rem, 2.3vw, 1.12rem); color: var(--text-soft); max-width: 620px; }
.lead strong { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--btn-grad-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgb(var(--accent-rgb) / .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgb(var(--accent-rgb) / .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin: 56px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.stats li { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat-label { font-size: .85rem; color: var(--text-dim); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-kicker {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
}
.section-title { max-width: 760px; }
.section-lead { max-width: 640px; color: var(--text-soft); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgb(var(--accent-rgb) / .45); }
.card-icon { font-size: 1.7rem; margin-bottom: 10px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-soft); font-size: .94rem; }

/* ── Services ─────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.service:hover { transform: translateY(-4px); border-color: rgb(var(--accent-rgb) / .45); }
.service-live {
  border-color: rgb(var(--accent-rgb) / .4);
  box-shadow: 0 22px 50px -34px rgb(var(--accent-rgb) / .85);
}
.service-soon { opacity: .82; }
.service-soon:hover { border-color: var(--border); }

.service-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.service-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .16); }
  50%      { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / .04); }
}

.status {
  padding: 3px 11px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
}
.status-live { color: var(--accent-ink); background: var(--accent); }
.status-soon { color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); }

.service-name { margin-bottom: .45em; font-size: 1.3rem; }
.service-desc { color: var(--text-soft); font-size: .94rem; }
.service-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--accent);
}
.service-link:hover { text-decoration: underline; }
.service-link.is-disabled { color: var(--text-dim); font-weight: 500; }

/* ── Timeline ─────────────────────────────────────────────────────────── */
.timeline { margin: 40px 0 0; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  padding-bottom: 34px;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 12px; top: 18px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-dot {
  width: 12px; height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-date {
  margin: 0 0 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}
.timeline h3 { margin-bottom: .3em; font-size: 1.08rem; }
.timeline p:last-child { margin: 0; color: var(--text-soft); font-size: .94rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin-top: 40px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .22s ease;
}
.faq[open] { border-color: rgb(var(--accent-rgb) / .35); }
.faq summary {
  position: relative;
  padding: 18px 54px 18px 22px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0; padding: 0 22px 20px; font-size: .94rem; color: var(--text-soft); }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.section-cta {
  background:
    radial-gradient(60% 100% at 50% 0%, rgb(var(--accent-rgb) / .10), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .section-title { max-width: 620px; }
.cta-inner .section-lead { margin-inline: auto; }

.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 32px;
  padding: 13px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.contact-mail-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-addr { font-weight: 700; color: var(--accent); word-break: break-all; }
.contact-addr:hover { text-decoration: underline; }
.btn-sm { padding: 9px 17px; font-size: .84rem; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 660px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 650; color: var(--text-soft); }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .13);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.form-hint { margin: 0; font-size: .82rem; color: var(--text-dim); }
.form-hint.is-error { color: var(--error); }

.contact-mail-info { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.contact-card {
  width: 100%;
  max-width: 700px;
  margin-top: 6px;
  padding: 22px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.intent-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.intent-tab {
  flex: 1;
  padding: 9px 14px;
  font: inherit;
  font-size: .85rem;
  font-weight: 620;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.intent-tab:hover { color: var(--text); }
.intent-tab.is-active { color: var(--accent-ink); background: var(--accent); font-weight: 700; }

.field-error { margin: 0; font-size: .78rem; color: var(--error); }
.field-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.char-count { font-size: .76rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.mail-preview {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.mail-preview[hidden] { display: none; }
.mail-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mail-preview-subject { font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--accent); }
.mail-preview-body {
  margin: 0;
  font-family: var(--font);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.contact-note { margin: 18px 0 0; font-size: .82rem; color: var(--text-dim); }

/* ══ Magazine (issue page) ═══════════════════════════════════════════════ */

/* ── 표지 ─────────────────────────────────────────────────────────────── */
.cover { position: relative; padding: clamp(34px, 6vw, 68px) 0 clamp(24px, 4vw, 40px); overflow: hidden; }
.cover-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.cover-text { min-width: 0; }
.cover-text h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.cover-text .lead { max-width: 640px; }

.cover-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  aspect-ratio: 3 / 4;
  padding: 24px 22px 24px 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 0%, rgb(var(--accent-rgb) / .25), transparent 62%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -50px var(--shadow-lg), 0 0 0 1px rgb(var(--accent-rgb) / .08);
}
.cover-card::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.cover-brand { font-size: .64rem; font-weight: 800; letter-spacing: .22em; color: var(--text-dim); }
.cover-numeral {
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cover-theme { font-size: 1.05rem; font-weight: 750; }
.cover-rule { display: block; width: 42px; height: 2px; background: var(--accent); border-radius: 2px; }
.cover-date { font-size: .78rem; font-weight: 650; letter-spacing: .1em; color: var(--text-soft); }

.cover-progress { max-width: 420px; margin: 26px 0 0; }
.cover-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 650;
  color: var(--text-dim);
}
.cover-progress-count { color: var(--accent); font-variant-numeric: tabular-nums; }
.cover-progress-track {
  height: 7px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.cover-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  transition: width .4s ease;
}

/* 화면 상단 고정 읽기 진행 바 */
.read-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 55; height: 3px; pointer-events: none; }
.read-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 9px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
}
.count-pill--lg { min-width: 32px; height: 32px; font-size: .9rem; }

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.issue-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.chip-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.chip-value { font-size: .88rem; font-weight: 650; color: var(--text); }

.draft-note {
  max-width: 720px;
  margin: 26px 0 0;
  padding: 13px 18px;
  font-size: .84rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

/* ── 목차 + 본문 2단 레이아웃 ────────────────────────────────────────── */
.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.issue-aside { position: sticky; top: 92px; }
.aside-kicker { margin: 0 0 6px; font-size: .72rem; font-weight: 750; letter-spacing: .16em; color: var(--accent); }
.aside-title { margin: 0 0 16px; font-size: 1.05rem; font-weight: 750; }
.aside-hint { margin: 18px 0 0; font-size: .78rem; line-height: 1.6; color: var(--text-dim); }
.issue-body { min-width: 0; }

/* ── 목차 항목 ────────────────────────────────────────────────────────── */
.toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background .2s ease, border-color .2s ease;
}
.toc-link:hover { background: var(--surface); }
.toc-item.is-done .toc-link { border-left-color: rgb(var(--accent-rgb) / .45); }
.toc-link.is-active { background: var(--surface); border-left-color: var(--accent); }
.toc-link.is-active .toc-title { color: var(--accent); }
.toc-icon { font-size: .95rem; }
.toc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.toc-title { font-size: .9rem; font-weight: 620; }
.toc-kind { font-size: .74rem; color: var(--text-dim); }
.toc-check { font-size: .78rem; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.toc-item.is-done .toc-check { color: var(--accent); }

/* ── 섹션 ─────────────────────────────────────────────────────────────── */
.m-section { padding: 0 0 clamp(40px, 6vw, 68px); }
.m-section + .m-section { padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--border); }
.m-section .wrap { width: auto; max-width: none; padding: 0; }

.m-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.m-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: .9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--btn-grad-2));
  border-radius: 12px;
  box-shadow: 0 10px 24px -16px rgb(var(--accent-rgb) / .9);
}
.m-num.is-done {
  color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .5);
}
.m-head-main { flex: 1; min-width: 0; }
.m-kind { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: .78rem; font-weight: 650; color: var(--text-dim); }
.m-kind-icon { font-size: .95rem; }
.m-dot { opacity: .5; }
.m-title { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.m-level {
  padding: 2px 9px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .1);
  border: 1px solid rgb(var(--accent-rgb) / .3);
  border-radius: 999px;
}

.m-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  font: inherit;
  font-size: .84rem;
  font-weight: 620;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
/* 듣기는 섹션의 주 동작이므로 강조색으로 띄워 둡니다 */
.m-audio {
  color: var(--text);
  background: rgb(var(--accent-rgb) / .10);
  border-color: rgb(var(--accent-rgb) / .45);
}
.m-btn:hover { color: var(--text); border-color: var(--accent); }
.m-btn.is-on {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.m-intro { font-size: 1.03rem; color: var(--text-soft); max-width: 680px; }
.m-body { max-width: 680px; }
.m-body p { margin-bottom: 1.1em; }
.m-body strong, .m-bullets strong, .quiz-q strong, .m-quote strong { color: var(--accent); font-weight: 750; }

.m-quote {
  max-width: 680px;
  margin: 26px 0;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 650;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.m-quote p { margin: 0; }

.m-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.m-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform .2s ease, border-color .2s ease;
}
.m-item:hover { transform: translateY(-2px); border-color: rgb(var(--accent-rgb) / .45); }
.m-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-item-en { font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
.m-item-ko { font-size: .92rem; color: var(--text-soft); }
.m-item-note { font-size: .8rem; color: var(--text-dim); }
.m-item .m-btn { align-self: flex-start; margin-top: auto; }

.m-bullets { max-width: 680px; margin: 22px 0 0; padding-left: 20px; }
.m-bullets li { margin-bottom: 10px; color: var(--text-soft); }

.m-dialogue { display: grid; gap: 14px; margin: 26px 0 0; max-width: 620px; }
.m-line { display: flex; align-items: flex-start; gap: 10px; }
.m-line.is-right { flex-direction: row-reverse; }
.m-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
}
.m-line.is-right .m-avatar {
  color: var(--text-soft);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.m-who { font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.m-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
}
.m-line.is-right .m-bubble {
  border-radius: 14px 14px 4px 14px;
  border-color: rgb(var(--accent-rgb) / .35);
}
.m-bubble-en { font-weight: 620; }
.m-bubble-ko { font-size: .88rem; color: var(--text-soft); }

.m-questions { max-width: 680px; margin: 22px 0 0; padding-left: 20px; }
.m-questions li { margin-bottom: 10px; }

.m-quiz { display: grid; gap: 14px; margin-top: 26px; max-width: 680px; }
.quiz-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.quiz-q { display: flex; gap: 10px; margin: 0 0 14px; font-weight: 620; }
.quiz-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: .74rem;
  font-weight: 800;
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .12);
  border-radius: 6px;
}
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: .92rem;
  text-align: left;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.quiz-opt:hover { color: var(--text); border-color: var(--accent); }
.quiz-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.quiz-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-dim);
  background: var(--surface-2);
  border-radius: 6px;
}
.quiz-opt.is-correct {
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.quiz-opt.is-correct .quiz-letter { color: var(--accent-ink); background: rgb(255 255 255 / .28); }
.quiz-opt.is-wrong { color: var(--error); border-color: var(--error); }
.quiz-opt.is-wrong .quiz-letter { color: var(--error); background: transparent; }
.quiz-feedback { display: flex; gap: 8px; margin: 14px 0 0; font-size: .88rem; }
.quiz-feedback-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 50%;
}
.quiz-feedback.is-correct { color: var(--accent); }
.quiz-feedback.is-correct .quiz-feedback-icon { color: var(--accent-ink); background: var(--accent); }
.quiz-feedback.is-wrong { color: var(--error); }
.quiz-feedback.is-wrong .quiz-feedback-icon { color: #fff; background: var(--error); }

/* ── 듣기 속도 (매거진) ───────────────────────────────────────────────── */
.rate-set {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.rate-label { padding: 0 8px 0 10px; font-size: .82rem; font-weight: 650; color: var(--text-soft); }
.rate-opt {
  padding: 6px 11px;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.rate-opt:hover { color: var(--text); background: var(--surface-2); }
.rate-opt[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }

.m-foot { margin-top: 30px; }
.m-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform .2s ease, border-color .2s ease;
}
.m-next:hover { transform: translateX(3px); border-color: var(--accent); }
.m-next-label { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.m-next-title { font-size: .95rem; font-weight: 650; }
.m-next-arrow { color: var(--accent); font-size: 1.05rem; }

/* ── 단어장 ───────────────────────────────────────────────────────────── */
.wb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wb-head .section-title { margin: 0; }
.wb-empty {
  margin: 30px 0 0;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.wb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.wb-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.wb-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wb-en { font-size: 1.05rem; font-weight: 750; }
.wb-ko { font-size: .9rem; color: var(--text-soft); }
.wb-note { font-size: .78rem; color: var(--text-dim); }
.wb-from { font-size: .74rem; color: var(--accent); }
.wb-item .m-btn { align-self: flex-start; margin-top: auto; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wb-actions[hidden] { display: none; }

/* ── Back to top & toast ──────────────────────────────────────────────── */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 1.05rem;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--btn-grad-2));
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgb(var(--accent-rgb) / .8);
  transition: transform .2s ease;
}
.to-top:hover { transform: translateY(-3px); }
.to-top[hidden] { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  transform: translateX(-50%);
  padding: 11px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 18px 40px -20px var(--shadow-lg);
}
.toast[hidden] { display: none; }

/* ── Scroll reveal & active nav ───────────────────────────────────────── */
.reveal { transition: opacity .5s ease, transform .5s ease; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.nav a.is-active { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { padding: 40px 0 34px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-soft); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin: 0; color: var(--text-dim); font-size: .82rem; }

.footer-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-setting { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-dim); }
.footer-setting-label { font-weight: 650; color: var(--text-soft); }

.accent-swatches { display: inline-flex; gap: 8px; }
.swatch {
  width: 22px; height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.swatch[data-accent="mint"]   { background: #4ecf9a; }
.swatch[data-accent="violet"] { background: #a78bfa; }
.swatch[data-accent="ocean"]  { background: #6cc4f5; }
.swatch[data-accent="amber"]  { background: #f5c451; }

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .menu-btn { display: flex; }

  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 18px;
    background: var(--overlay-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-of-type { border-bottom: 0; }

  /* 테마 선택은 좁은 화면에서 메뉴 안으로 들어갑니다 */
  .theme-set--bar { display: none; }
  .nav-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 4px;
  }
  .nav-theme-label { font-size: .85rem; font-weight: 650; color: var(--text-soft); }

  .stats { gap: 18px 32px; }
  .timeline li { grid-template-columns: 20px 1fr; gap: 14px; }
  .timeline li:not(:last-child)::before { left: 9px; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-mail { border-radius: var(--radius); }
  .to-top { right: 16px; bottom: 16px; }

  .quiz-options { grid-template-columns: 1fr; }
  .rate-set { width: 100%; justify-content: space-between; }
  .m-tools { width: 100%; }
  .m-next { width: 100%; justify-content: space-between; }
  .intent-tabs { flex-direction: column; border-radius: var(--radius); }
  .intent-tab { border-radius: var(--radius-sm); }
}

@media (max-width: 900px) {
  .cover-inner { grid-template-columns: 1fr; gap: 26px; }
  .cover-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    aspect-ratio: auto;
    padding: 16px 20px 16px 24px;
  }
  .cover-brand, .cover-rule { display: none; }
  .cover-numeral { font-size: 2.4rem; }
  .cover-theme { font-size: .95rem; }
  .cover-date { margin-left: auto; }
  .issue-layout { grid-template-columns: 1fr; }
  .issue-aside { position: static; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-preview { max-width: 540px; }
  .hero-inner .stats { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
