/* Malkey 전용 색과 부품. 공통 효과는 _core 에 있다. */
:root {
  --brand: #0d8a80;
  --brand-ink: #0a6f67;
  --brand-soft: #e2f6f3;
  --brand-light: #5fe0d0;
  --brand-rgb: 13, 138, 128;
  --accent-rgb: 99, 102, 241;
  --hero-1: #061a1e;
  --hero-2: #08262c;
  --hero-3: #041114;
}
html[lang="ja"] { --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Segoe UI", sans-serif; }
html[lang="ja"] body { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
html[lang="en"] body { word-break: normal; }
.nav { background: rgba(6, 26, 30, .6); }
.nav.scrolled { background: rgba(6, 26, 30, .94); }
.footer { background: #031012; }
.hero-note, .stat small { color: #8fb0ad; }
.lead { color: #b5cbc8; }
.hero-sub { padding-bottom: 72px; }
.tlink { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dark .tlink, .hero .tlink { color: var(--brand-light); }
.note { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.more { margin-top: 24px; text-align: center; }
.faq-group { max-width: 820px; margin: 44px auto 16px; font-size: 24px; }
.faq-group:first-child { margin-top: 0; }
.price-one { max-width: 460px; margin: 0 auto 28px; }
.plan .price { color: var(--brand); }
.legal { margin-top: 10px; font-size: 12.5px; color: #6f8784; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); word-break: break-all; }
.dark .code { background: rgba(255, 255, 255, .1); color: #d9f5f1; }

/* 언어 고르기 */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; color: #b9cdca; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: rgba(255, 255, 255, .14); color: #fff; }

/* 히어로 도식: 말 → 내 PC 안에서 받아쓰기 → 커서 자리 */
.flow { padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); color: #e7f2f0; }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.flow-step > i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 21px; color: #04211f; background: var(--brand-light); }
.flow-step b { display: block; font-size: 15px; }
.flow-step small { display: block; font-size: 12.5px; color: #9fbdb9; }
.flow-arrow { display: grid; place-items: center; height: 26px; color: var(--brand-light); font-size: 18px; }
.wave { display: flex; align-items: center; gap: 4px; height: 30px; margin-left: auto; }
.wave i { display: block; width: 4px; height: 30%; border-radius: 4px; background: var(--brand-light); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.9s; } .wave i:nth-child(3) { animation-delay: -.7s; } .wave i:nth-child(4) { animation-delay: -.5s; } .wave i:nth-child(5) { animation-delay: -.3s; } .wave i:nth-child(6) { animation-delay: -.15s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.doc { border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); }
.doc-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef3f2; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.doc-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dddb; }
.doc-bar span { margin-left: 6px; }
.doc-body { min-height: 86px; padding: 14px 16px; font-size: 15.5px; line-height: 1.55; }
.typed { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.js .typed { width: 0; animation: typing 5.5s steps(30, end) infinite; }
@keyframes typing { 0% { width: 0; } 45%, 85% { width: 100%; } 100% { width: 100%; } }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--brand); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.status-pill { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #04211f; background: #7ee2a8; }
.flow-cap { margin-top: 10px; font-size: 12.5px; color: #8fb0ad; text-align: right; }

.hero h1 .nw { display: inline-block; }

/* 세 기능 카드: 같은 크기, 링크는 아래에 */
.trio .card { display: flex; flex-direction: column; }
.trio .card .tlink { margin-top: auto; padding-top: 14px; align-self: flex-start; }

/* 섹션 안 어두운 그림판 */
.stage { margin: 0; padding: 20px; border-radius: 26px; background: radial-gradient(520px 300px at 80% 0%, rgba(var(--brand-rgb), .28), transparent 62%), linear-gradient(162deg, var(--hero-1), var(--hero-3)); box-shadow: var(--shadow-md); min-width: 0; }
.stage .flow { box-shadow: none; }
.show > figure { margin: 0; }
.show + .grid { margin-top: 0; }

/* 도식: 윈도우 화면 ↔ 맥 화면 */
.duo { padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); color: #e7f2f0; }
.stage .duo { box-shadow: none; }
.duo-screens { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.scr { min-width: 0; border-radius: 12px; overflow: hidden; background: #0c2a30; border: 1px solid rgba(255, 255, 255, .16); }
.scr-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; font-size: 12.5px; font-weight: 700; color: #d3e9e5; background: rgba(255, 255, 255, .08); white-space: nowrap; overflow: hidden; }
.scr-bar i { color: var(--brand-light); }
.scr-body { position: relative; min-height: 118px; padding: 12px; }
/* 화면 뒤 로고 — 왼쪽은 윈도우, 오른쪽은 맥(작업 #2206) */
.scr-body { isolation: isolate; }
.duo-screens > .scr .scr-body::before { position: absolute; z-index: -1; top: 60%; left: 50%; transform: translate(-50%, -50%); font-family: "bootstrap-icons"; font-size: 80px; line-height: 1; color: #fff; opacity: .13; pointer-events: none; }
.duo-screens > .scr:nth-child(1) .scr-body::before { content: "\f65e"; color: #8fd8ff; opacity: .3; }
.duo-screens > .scr:nth-child(2) .scr-body::before { content: "\f65b"; opacity: .2; }
.mini-doc { padding: 8px 10px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12.5px; line-height: 1.5; min-height: 36px; }
.mini-doc .typed { max-width: calc(100% - 4px); }
.mini-lines { display: grid; gap: 7px; padding-top: 4px; }
.mini-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.mini-lines i:nth-child(2) { width: 78%; } .mini-lines i:nth-child(3) { width: 56%; }
.mini-folder { display: inline-grid; place-items: center; width: 44px; height: 38px; border-radius: 9px; font-size: 24px; color: #f5c451; background: rgba(255, 255, 255, .07); }
.key { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .32); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11.5px; font-weight: 700; color: #e7f2f0; background: rgba(0, 0, 0, .2); }
.duo-edge { position: absolute; top: 30px; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: var(--brand-light); box-shadow: 0 0 16px rgba(95, 224, 208, .8); animation: edge 5s ease-in-out infinite; }
@keyframes edge { 0%, 20%, 60%, 100% { opacity: .25; } 35%, 45% { opacity: 1; } }
.duo-cursor { position: absolute; z-index: 3; top: 64%; left: 24%; font-size: 22px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: cross 5s ease-in-out infinite; }
@keyframes cross { 0%, 12% { left: 24%; } 45%, 75% { left: 72%; } 100% { left: 24%; } }
.duo-file { position: absolute; z-index: 2; top: 42%; left: 4%; display: inline-flex; align-items: center; gap: 5px; max-width: 46%; padding: 5px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #04211f; background: var(--brand-light); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); white-space: nowrap; overflow: hidden; animation: fly 6s ease-in-out infinite; }
.duo-cursor ~ .duo-file { top: 74%; }
@keyframes fly { 0%, 18% { left: 4%; } 50%, 82% { left: 54%; } 100% { left: 4%; } }
.duo-net { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: 12.5px; color: #9fbdb9; text-align: center; }
.duo-net i { color: var(--brand-light); }
.duo-base { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 700; color: #d3e9e5; }
.duo-base i { font-size: 22px; color: var(--brand-light); }
.duo-rows { display: grid; gap: 8px; margin-top: 14px; }
.duo-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.duo-row > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; color: #04211f; background: var(--brand-light); }
.duo-row b { display: block; font-size: 14px; color: #fff; }
.duo-row small { display: block; font-size: 12px; color: #9fbdb9; }
.ok { color: #12b76a; margin-right: 6px; }
.bonus { border: 2px solid rgba(var(--brand-rgb), .45); }
.card .checks { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .duo-cursor, .duo-file, .duo-edge { animation: none; }
  .duo-cursor { left: 72%; }
  .duo-file { left: 54%; }
}
@media (max-width: 560px) {
  .duo { padding: 14px; }
  .stage { padding: 14px; }
  .duo-screens { gap: 12px; }
  .scr-body { min-height: 104px; padding: 10px; }
  .duo-screens > .scr .scr-body::before { font-size: 64px; }
  .duo-file span, .duo-file { font-size: 11px; }
}

/* 상태 표 */
.show > * { min-width: 0; }
.dotc { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #c3ccd9; vertical-align: middle; }
.dotc.blue { background: #3b82f6; } .dotc.green { background: #12b76a; } .dotc.red { background: #f04438; } .dotc.yellow { background: #f5b700; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; }

/* 설치 파일 카드 */
.dl-card { display: flex; flex-direction: column; }
.dl-card .meta { margin: 6px 0 18px; font-size: 14.5px; color: var(--ink-2); }
.dl-card .meta b { color: var(--ink); }
.dl-card .btn { align-self: flex-start; margin-top: auto; }
.dl-card .fname { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); word-break: break-all; }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.howto li { position: relative; padding-left: 36px; font-size: 15.5px; color: var(--ink-2); }
.howto li::before { counter-increment: h; content: counter(h); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--brand); }
.howto b { color: var(--ink); }
.callout { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f5d98b; font-size: 15px; color: #6b4e00; }
.callout b { color: #4a3600; }
.callout i { margin-right: 6px; }

/* 내 계정 */
.acct { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.acct-card { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.acct-card h2 { font-size: 22px; margin-bottom: 8px; }
.acct-card p { font-size: 15.5px; color: var(--ink-2); }
.acct-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.acct-card.link { border: 2px solid var(--brand); }
.acct-card.warn { border-color: #f5d98b; background: #fffbf0; }
.acct-card.ok { border-color: rgba(18, 183, 106, .5); background: #f2fbf6; }
.acct-msg { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.who b { font-size: 17px; word-break: break-all; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.badge.yes { color: #067647; background: #dcfae6; }
.badge.no { color: #b42318; background: #fee4e2; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 14px 0 0; font-size: 15px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.devices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.devices li > i { font-size: 20px; color: var(--brand); }
.devices li div { flex: 1; min-width: 0; }
.devices b { display: block; font-size: 15px; word-break: break-all; }
.devices small { color: var(--ink-3); font-size: 12.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-danger { background: #fff; color: #b42318; border-color: #fda29b; }
.btn-danger:hover { border-color: #b42318; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.gbtn { min-height: 44px; margin-top: 18px; }
.err { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: #b42318; }
.small { font-size: 13.5px; color: var(--ink-3); }

/* 약관 · 방침 */
.legal-doc { max-width: 820px; margin: 0 auto; padding: 36px; }
.legal-doc:hover { transform: none; }
.legal-sec + .legal-sec { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: 19px; margin-bottom: 10px; }
.legal-sec p, .legal-sec li { font-size: 15.5px; color: var(--ink-2); }
.legal-sec p + p { margin-top: 8px; }
.legal-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 560px) { .legal-doc { padding: 22px; } }

/* 언어 고르기 첫 화면 */
.picker { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; color: #e7f2f0; background: radial-gradient(800px 460px at 70% 10%, rgba(var(--brand-rgb), .3), transparent 60%), linear-gradient(162deg, var(--hero-1), var(--hero-3)); }
.picker h1 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin: 16px 0 10px; }
.picker p { color: #b5cbc8; }
.picker .hero-actions { justify-content: center; margin-top: 26px; }
.picker img { margin: 0 auto; border-radius: 14px; }

@media (max-width: 1180px) and (min-width: 961px) { .nav-links { gap: 16px; font-size: 14px; } .nav-links .hide-mid { display: none; } }
@media (max-width: 960px) {
  .nav-links { background: rgba(6, 26, 30, .97); }
  .lang-switch { align-self: flex-start; }
  .table-wrap table { min-width: 560px; }
  .table-wrap.compact table { min-width: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  .acct-card { padding: 20px; }
  .devices li { flex-wrap: wrap; }
}

/* 이름 뜻 한 줄(첫 화면 소개 아래) */
.hero-note.name-note { margin: 10px 0 22px; }
