:root {
  /* "투명망토" 테마: 물처럼 흐르는 은빛 천 + 짙은 남색 글자 (2026-11-13) */
  --ink: #14181d;
  --ink-2: #2c333b;
  --muted: #444c55;
  --paper: #a7afb8;
  --card: rgb(255 255 255 / .5);
  --line: rgb(255 255 255 / .62);
  --brass: #1d2a38;              /* 강조색: 짙은 남색 (이름은 예전 그대로 둠) */
  --brass-soft: rgb(255 255 255 / .5);
  --night: #1d2a38;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: transparent; color: var(--ink); font: 17px/1.65 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
/* ── 투명망토 바탕 (app.css 와 같음) */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
body::before {
  inset: -25%;
  background:
    repeating-linear-gradient(100deg, rgb(255 255 255 / 0) 0 38px, rgb(255 255 255 / .16) 52px, rgb(255 255 255 / 0) 70px),
    linear-gradient(120deg, #6e7680 0%, #b9c1c9 18%, #8d96a0 32%, #e6eaee 48%, #9aa3ad 62%, #d3d9df 78%, #727a84 100%);
  animation: cloak-drift 18s ease-in-out infinite alternate;
}
body::after {
  inset: -40%;
  background: conic-gradient(from 0deg, rgb(160 220 230 / .14), rgb(230 220 250 / .12), rgb(250 240 210 / .12), rgb(160 220 230 / .14));
  filter: blur(30px); mix-blend-mode: soft-light; animation: cloak-spin 30s linear infinite;
}
@keyframes cloak-drift { from { transform: translate3d(-6%, -3%, 0) rotate(-2deg); } to { transform: translate3d(6%, 3%, 0) rotate(2deg); } }
@keyframes cloak-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after, .demo-pad polyline { animation: none; } .demo-pad polyline { stroke-dashoffset: 0; } }
.feature-grid article, .price-card, .plan-opt, .guide-list a, .warn, .lang-select, .ghost-btn, .code-box { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
a { color: inherit; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.top { max-width: 1080px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 16px; align-items: center; font-size: .95rem; }
.top nav a:not(.cta) { text-decoration: none; color: var(--ink-2); }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.cta, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem;
}
.cta { background: var(--night); color: #eef1f4; box-shadow: 0 4px 14px rgb(20 24 29 / .2); }
.cta.small { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.cta.wide { width: 100%; margin-top: 16px; }
.cta:disabled { opacity: .4; cursor: not-allowed; }
.ghost-btn { background: rgb(255 255 255 / .3); color: var(--ink); border: 1.5px solid var(--line); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 12px; }
.fine { color: var(--muted); font-size: .86rem; }
.lead { color: var(--ink-2); font-size: 1.08rem; }
.eyebrow { color: var(--brass); font-weight: 700; margin: 0 0 8px; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 36px 0 64px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.22; letter-spacing: -0.025em; margin: 0 0 18px; }
.hero-art { background: rgb(255 255 255 / .28); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 28px; padding: 36px; }
.demo-pad { width: 100%; display: block; }
.demo-pad { filter: drop-shadow(0 0 6px rgb(255 255 255 / .7)); }
.demo-pad circle { fill: rgb(20 24 29 / .55); }
.demo-pad polyline { fill: none; stroke: #1d2a38; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 12px; } .hero-art { max-width: 340px; padding: 24px; } }

section h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -0.02em; margin: 0 0 18px; }
.features, .price, .faq, .final { padding: 48px 0; border-top: 1px solid rgb(20 24 29 / .12); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-grid article, .price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-grid h3, .price-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature-grid p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.warn { background: var(--brass-soft); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; color: var(--ink); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.best { border: 2px solid var(--brass); }
.price-card .tag { position: absolute; top: -13px; left: 20px; background: var(--brass); color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin: 0; }
.pp { font-size: 1.9rem; font-weight: 800; margin: 2px 0 8px; letter-spacing: -0.02em; }
.price-card ul { padding-left: 18px; margin: 0 0 18px; color: var(--ink-2); flex: 1; }
@media (max-width: 960px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid rgb(20 24 29 / .12); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }
.final { text-align: center; padding-bottom: 72px; }

.site-footer { border-top: 1px solid rgb(20 24 29 / .12); color: var(--muted); font-size: .82rem; padding: 28px 16px 40px; max-width: 1080px; margin: 0 auto; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer p { margin: 2px 0; }

/* 결제 페이지 */
.pay-main { max-width: 560px; padding-bottom: 40px; }
.pay-main h1 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 8px 0 6px; }
.test-banner { background: #fff1c9; color: #5a4000; border-radius: 10px; padding: 10px 14px; font-weight: 700; margin: 0 0 8px; }
.plans { border: 0; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.plan-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 3px rgb(29 42 56 / .18); background: rgb(255 255 255 / .66); }
.plan-opt input { grid-row: span 2; width: 20px; height: 20px; accent-color: var(--brass); }
.po-name { font-weight: 700; }
.po-price { font-weight: 800; font-size: 1.15rem; text-align: right; }
.po-sub { grid-column: 2 / 4; color: var(--muted); font-size: .88rem; }
.pay-msg { color: #8f2a20; font-weight: 600; min-height: 1.4em; }
#payment-method, #agreement { background: #fff; border-radius: 14px; }
.code-box { width: 100%; font: .8rem/1.45 ui-monospace, Consolas, monospace; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); resize: none; }

/* 가이드 글 */
.article { max-width: 720px; padding-bottom: 40px; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.3; letter-spacing: -0.02em; margin: 10px 0 10px; }
.article h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.article .meta { color: var(--muted); font-size: .88rem; }
.article li { margin: 4px 0; }
.app-cta { display: flex; gap: 16px; align-items: center; background: var(--night); color: #eef1f4; border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; box-shadow: 0 8px 24px rgb(20 24 29 / .2); }
.app-cta img { flex: none; }
.app-cta p { margin: 0; flex: 1; }
.app-cta b { display: block; color: #fff; }
.app-cta .cta { background: #e6eaee; color: #14181d; white-space: nowrap; }
@media (max-width: 520px) { .app-cta { flex-wrap: wrap; } .app-cta .cta { width: 100%; } }
.guide-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.guide-list a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; }
.guide-list b { display: block; font-size: 1.08rem; }
.guide-list span { color: var(--muted); font-size: .9rem; }
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h1 { font-size: 1.7rem; }
.legal .draft { background: #fff1c9; color: #5a4000; padding: 10px 14px; border-radius: 10px; }

/* 언어 */
.lang-select { font: inherit; font-size: .9rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; max-width: 150px; }
.lang-suggest { margin: 0; text-align: center; background: var(--night); color: #eef1f4; padding: 8px 16px; font-weight: 700; }
.lang-suggest a { text-decoration: none; }
.top { flex-wrap: wrap; }
.top nav { flex-wrap: wrap; justify-content: flex-end; }
[dir="rtl"] .price-card .tag { left: auto; right: 20px; }
[dir="rtl"] .price-card ul, [dir="rtl"] .article ul, [dir="rtl"] .article ol { padding-left: 0; padding-right: 18px; }
@media (max-width: 520px) { .top nav { gap: 10px; } .lang-select { max-width: 120px; } }
