/* ========== 디자인 토큰 ========== */
:root {
  --bg: #f5f6f8;
  --bg-2: #eceef2;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #111318;
  --text-2: #3b4150;
  --muted: #6b7280;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #3156f5;
  --brand-hover: #2445d6;
  --brand-ink: #ffffff;
  --brand-soft: #eef2ff;
  --brand-line: #c7d2fe;
  --ok: #12804a;
  --ok-soft: #e7f6ee;
  --warn: #a15c07;
  --warn-soft: #fef4e2;
  --bad: #c4320a;
  --bad-soft: #fdece7;
  --violet: #6d3fe0;
  --violet-soft: #f1ebff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .18);
  --sidebar-w: 240px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e12;
    --bg-2: #14171d;
    --surface: #13161c;
    --surface-2: #181c23;
    --text: #edf0f5;
    --text-2: #c3c9d4;
    --muted: #8b93a3;
    --line: #242933;
    --line-2: #323845;
    --brand: #6f8cff;
    --brand-hover: #8aa1ff;
    --brand-ink: #0a0d14;
    --brand-soft: #1a2142;
    --brand-line: #2f3d78;
    --ok: #4ccb86;
    --ok-soft: #12271c;
    --warn: #f2b45a;
    --warn-soft: #2c2213;
    --bad: #ff8466;
    --bad-soft: #321a14;
    --violet: #a98bff;
    --violet-soft: #231c3d;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ========== 기본 ========== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
img, svg { display: block; }
button { font: inherit; }
code, .mono { font-family: var(--mono); font-size: .88em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 22px; height: 22px; }

/* ========== 버튼 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.btn.small { height: 32px; padding: 0 11px; font-size: .85rem; border-radius: 7px; }
.btn.large { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 38px; padding: 0; }
.btn.small.icon-only { width: 32px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 폼 ========== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, label > span.label-text { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-weight: 400; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
input, select, textarea {
  font: inherit; font-size: .94rem; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  height: 40px; padding: 0 12px; width: 100%; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--brand); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; height: 40px; }

/* ========== 공용 요소 ========== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 1rem; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; font-size: .76rem; font-weight: 700; border-radius: 6px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.mute { background: var(--bg-2); color: var(--muted); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font-size: .74rem; font-weight: 700; border-radius: 999px; background: var(--brand-soft); color: var(--brand); width: fit-content; white-space: nowrap; }
.chip.real { background: var(--violet-soft); color: var(--violet); }
.chip.kr { background: var(--ok-soft); color: var(--ok); }

.hint { color: var(--muted); font-size: .84rem; font-weight: 400; }
.error { color: var(--bad); font-size: .86rem; font-weight: 500; min-height: 1.2em; }
.error:empty { min-height: 0; }
.row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.spacer { flex: 1; }
.num { font-variant-numeric: tabular-nums; }

/* 표 */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; white-space: nowrap; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th.check, td.check { width: 44px; padding-right: 0; }
td input, td select, td textarea { height: 34px; padding: 0 8px; min-width: 70px; font-size: .88rem; }
td textarea { height: auto; padding: 6px 8px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .empty-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.empty strong { color: var(--text); font-size: 1rem; }

/* 탭 / 세그먼트 */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-2); border-radius: 10px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--muted); height: 32px; padding: 0 14px; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* 통계 */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat .value { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -0.03em; }
.stat .sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* 다이얼로그 */
dialog {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; width: min(460px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(10, 12, 18, .5); backdrop-filter: blur(2px); }
dialog form, dialog .dialog-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
dialog h3 { font-size: 1.12rem; }
dialog .dialog-desc { color: var(--muted); font-size: .92rem; margin-top: -6px; }

/* 토스트 */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px;
  padding: 12px 16px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
  font-size: .9rem; font-weight: 500; animation: toast-in .18s ease-out;
}
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* 요약 합계 */
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.total strong { font-size: 1.35rem; letter-spacing: -0.03em; }

/* 로고 */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none !important; letter-spacing: -0.03em; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.logo-mark svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ========== 마케팅(랜딩) ========== */
.site-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .inner { max-width: 1180px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.site-nav .links { display: flex; gap: 22px; }
.site-nav .links a { color: var(--text-2); font-weight: 600; font-size: .92rem; }
.site-nav .links a:hover { color: var(--text); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: 12px; letter-spacing: 0; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: var(--text-2); font-size: 1.14rem; margin-top: 22px; max-width: 520px; }
.hero .cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hero .checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hero .checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero .checks .icon { color: var(--ok); }

/* 히어로 우측: 기기 그리드 */
.fleet { position: relative; aspect-ratio: 1 / .92; }
.fleet-panel { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fleet-bar { display: flex; align-items: center; gap: 8px; }
.fleet-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); }
.fleet-bar .title { margin-left: 8px; font-size: .82rem; font-weight: 700; color: var(--text-2); }
.fleet-bar .count { margin-left: auto; font-size: .78rem; color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.fleet-bar .count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ok-soft); }
.fleet-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mini-phone { border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); padding: 5px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.mini-phone .scr { flex: 1; border-radius: 6px; background: linear-gradient(160deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.mini-phone .scr::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 14%; height: 12%; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.mini-phone .scr::before { content: ""; position: absolute; left: 14%; top: 18%; width: 40%; height: 7%; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.mini-phone .lbl { font-size: .62rem; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.mini-phone .lbl::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.fleet-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; }
.fleet-float .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.fleet-float small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.fleet-float.a { left: -28px; bottom: 56px; }
.fleet-float.a .ico { background: var(--ok-soft); color: var(--ok); }
.fleet-float.b { right: -18px; top: 70px; }
.fleet-float.b .ico { background: var(--brand-soft); color: var(--brand); }

.logos-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.logos-strip .inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: .92rem; }
.logos-strip .inner span { display: inline-flex; align-items: center; gap: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { color: var(--muted); margin-top: 8px; font-size: .94rem; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-card { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.compare-card.real { background: linear-gradient(170deg, var(--violet-soft), var(--surface) 55%); }
.compare-card.virtual { background: linear-gradient(170deg, var(--brand-soft), var(--surface) 55%); }
.compare-card h3 { font-size: 1.3rem; font-weight: 800; margin-top: 14px; }
.compare-card > p { color: var(--muted); margin-top: 8px; }
.compare-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.compare-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.compare-card li .icon { color: var(--ok); margin-top: 3px; }
.compare-card .from { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.compare-card .from strong { color: var(--text); font-size: 1.3rem; letter-spacing: -0.03em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: .9rem; margin-bottom: 18px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); margin-top: 8px; font-size: .94rem; }

.dev-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.dev-block ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.dev-block li { display: flex; gap: 12px; }
.dev-block li .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--text-2); }
.dev-block li strong { display: block; font-size: .96rem; }
.dev-block li span { color: var(--muted); font-size: .9rem; }
.codebox { background: #0d1117; color: #d6deeb; border-radius: var(--radius-lg); padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #1f2633; }
.codebox .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #1f2633; align-items: center; }
.codebox .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3140; }
.codebox .bar span { margin-left: 8px; font-size: .78rem; color: #7d8799; font-family: var(--mono); }
.codebox pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: .84rem; line-height: 1.75; overflow-x: auto; }
.codebox .k { color: #c792ea; } .codebox .s { color: #a5d6a7; } .codebox .c { color: #637087; } .codebox .n { color: #f78c6c; } .codebox .f { color: #82aaff; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.plan-card .ribbon { position: absolute; top: -11px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan-card h3 { font-size: 1.15rem; font-weight: 800; margin-top: 14px; }
.plan-card .desc { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 2.8em; }
.plan-card .price { margin-top: 18px; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; }
.plan-card .price small { font-size: .92rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan-card .per-day { color: var(--muted); font-size: .84rem; }
.plan-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan-card li { display: flex; gap: 9px; font-size: .92rem; color: var(--text-2); }
.plan-card li .icon { color: var(--brand); margin-top: 2px; }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin-top: -4px; font-size: .95rem; }

.cta-band { background: var(--text); color: var(--bg); border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.cta-band p { opacity: .7; margin-top: 8px; }
.cta-band .btn.primary { background: var(--bg); color: var(--text); border-color: var(--bg); }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 96px; color: var(--muted); font-size: .86rem; }
.site-footer .top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .links a { color: var(--text-2); font-weight: 600; }
.site-footer .biz { margin-top: 20px; line-height: 1.8; }
.site-footer .biz span + span::before { content: "|"; margin: 0 10px; color: var(--line-2); }

/* ========== 로그인 ========== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--text); color: var(--bg); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .logo { color: var(--bg); }
.auth-side .logo-mark { background: var(--bg); color: var(--text); }
.auth-side h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; max-width: 420px; }
.auth-side p { opacity: .65; margin-top: 14px; max-width: 420px; }
.auth-side .quote-list { display: grid; gap: 14px; margin-top: 36px; }
.auth-side .quote-list div { display: flex; gap: 10px; align-items: center; font-weight: 600; opacity: .9; }
.auth-side .quote-list .icon { color: var(--ok); }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-box h1 { font-size: 1.7rem; font-weight: 800; }
.auth-box .sub { color: var(--muted); margin-top: -8px; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.auth-box .switch { text-align: center; color: var(--muted); font-size: .92rem; }

/* ========== 콘솔(고객 · 관리자) ========== */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; }
.sidebar .logo { padding: 6px 10px 18px; }
.nav-section { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 14px 12px 6px; text-transform: uppercase; letter-spacing: .04em; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 38px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none !important; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-item .count { margin-left: auto; font-size: .74rem; background: var(--bg-2); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.nav-item[aria-current="page"] .count { background: var(--surface); color: var(--brand); }
.sidebar .bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .86rem; flex: none; }
.user-chip .who { min-width: 0; }
.user-chip .who strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who span { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs strong { color: var(--text); }
.menu-btn { display: none; }
.page { padding: 28px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.55rem; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page h2 { font-size: 1.05rem; font-weight: 700; margin: 30px 0 12px; }
.page > h2:first-child { margin-top: 0; }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .search { position: relative; width: 260px; max-width: 100%; }
.toolbar .search input { padding-left: 36px; height: 36px; }
.toolbar .search .icon { position: absolute; left: 11px; top: 9px; color: var(--muted); }
.toolbar select { width: auto; height: 36px; padding-right: 30px; }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand); font-weight: 700; font-size: .9rem; }

.device-name { display: flex; align-items: center; gap: 10px; }
.device-name .ph { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); color: var(--text-2); display: grid; place-items: center; flex: none; }
.device-name strong { font-size: .92rem; }
.device-name .sub { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.rename { opacity: 0; transition: opacity .1s; }
tr:hover .rename { opacity: 1; }
.expiry-soon { color: var(--warn); font-weight: 700; }

/* 원격 화면 */
.viewer { display: grid; grid-template-columns: auto minmax(280px, 360px); gap: 24px; align-items: start; }
.viewer-stage { display: flex; gap: 14px; align-items: flex-start; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.device-frame { position: relative; width: min(380px, calc(100vw - 120px)); aspect-ratio: 9 / 19.5; background: #0b0c0f; border-radius: 42px; padding: 12px; box-shadow: 0 0 0 2px #2a2d34, var(--shadow-lg); }
.device-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: #000; display: block; }
.device-frame .loading { position: absolute; inset: 12px; border-radius: 31px; display: grid; place-items: center; color: #8b93a3; font-size: .88rem; background: #000; }
.viewer-tools { display: flex; flex-direction: column; gap: 6px; }
.viewer-tools .btn { width: 42px; height: 42px; padding: 0; }
.info-list { display: grid; gap: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt, .info-list .k { color: var(--muted); }
.info-list .v { font-weight: 600; text-align: right; }
.copy-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 12px; font-family: var(--mono); font-size: .84rem; }
.copy-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 구매 */
.buy { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.plan-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.plan-option { position: relative; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, box-shadow .12s; font-weight: 400; color: var(--text); }
.plan-option:hover { border-color: var(--line-2); }
.plan-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option strong { font-size: 1rem; }
.plan-option .price { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.plan-option .price small { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan-option ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; color: var(--muted); font-size: .84rem; }
.plan-option .tick { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.plan-option:has(input:checked) .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.plan-option .tick .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.plan-option:has(input:checked) .tick .icon { opacity: 1; }
.period-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.period-option { cursor: pointer; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; background: var(--surface); font-weight: 700; color: var(--text); flex-direction: column; gap: 2px; align-items: center; }
.period-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.period-option input { position: absolute; opacity: 0; pointer-events: none; }
.period-option small { font-weight: 600; color: var(--ok); font-size: .76rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); font-size: 1.2rem; }
.stepper button:hover { background: var(--bg-2); }
.stepper input { width: 90px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font-weight: 700; height: 44px; box-shadow: none !important; }
.quick-qty { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.summary { position: sticky; top: 80px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .92rem; }
.summary .line span:first-child { color: var(--muted); }
.summary .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .grand strong { font-size: 1.6rem; letter-spacing: -0.04em; }
.form-section { margin-bottom: 28px; }
.form-section > .label { font-weight: 700; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.form-section > .label .hint { font-weight: 500; }

.key-reveal { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.key-reveal strong { color: var(--ok); }

.doc pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.7; margin: 8px 0 0; }
.endpoint { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.endpoint:last-child { border-bottom: 0; }
.method { font-family: var(--mono); font-size: .74rem; font-weight: 800; padding: 2px 7px; border-radius: 5px; min-width: 52px; text-align: center; }
.method.get { background: var(--ok-soft); color: var(--ok); }
.method.post { background: var(--brand-soft); color: var(--brand); }
.method.delete { background: var(--bad-soft); color: var(--bad); }
.endpoint code { font-weight: 600; }
.endpoint .desc { margin-left: auto; color: var(--muted); font-size: .85rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ========== 충전금 ========== */
.balance-box { margin: 10px 4px 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 1px; text-decoration: none !important; color: var(--text); }
.balance-box span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.balance-box strong { font-size: 1.08rem; letter-spacing: -0.03em; }
.balance-box em { font-style: normal; font-size: .78rem; color: var(--brand); font-weight: 700; }
.balance-box:hover { border-color: var(--brand-line); }
.pay-note { font-size: .86rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-note:empty { display: none; }
.pay-note.short { color: var(--bad); font-weight: 600; }
.wallet-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 24px; }
.balance-card { border-radius: var(--radius-lg); padding: 26px; background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--violet))); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; box-shadow: var(--shadow-lg); }
.balance-card .k { opacity: .8; font-weight: 600; font-size: .9rem; }
.balance-card .v { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; margin-top: 4px; }
.balance-card .meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: .86rem; opacity: .9; }
.balance-card .meta strong { display: block; font-size: 1rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2, #f2f4f7); border-radius: 10px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface, #fff); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-presets .btn { height: 42px; }
.amount-presets .btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.bank-box { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; font-size: .92rem; }
.bank-box .acct { font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.amt-plus { color: var(--ok); font-weight: 700; }
.amt-minus { color: var(--text); font-weight: 700; }

/* ========== 콘솔 추가 요소 ========== */
.sidebar { overflow-y: auto; }
.site-banner { background: var(--text); color: var(--bg); text-align: center; font-size: .86rem; font-weight: 600; padding: 8px 16px; }
.bell-wrap { position: relative; }
#bellBtn { position: relative; }
#bellBtn .dot { position: absolute; top: 7px; right: 8px; min-width: 8px; height: 8px; border-radius: 4px; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.bell-panel { position: absolute; right: 0; top: 46px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; z-index: 30; box-shadow: var(--shadow-lg); }
.bell-panel .head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.notif { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.notif strong { display: block; font-size: .9rem; }
.notif p { color: var(--muted); font-size: .84rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif time { font-size: .76rem; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg-2); color: var(--text-2); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag-filter button { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); height: 30px; padding: 0 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer; }
.tag-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.memo-line { color: var(--muted); font-size: .8rem; margin-top: 2px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 멀티 화면 */
.screens-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.screens-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; }
.screen-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.screen-tile .bar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.screen-tile .bar strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.screen-tile .bar .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.screen-tile .scr { position: relative; aspect-ratio: 9 / 19.5; background: #000; border-radius: 10px; overflow: hidden; }
.screen-tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen-tile .scr .msg { position: absolute; inset: 0; display: grid; place-items: center; color: #8b93a3; font-size: .8rem; text-align: center; padding: 10px; }
.screen-tile .tools { display: flex; gap: 4px; }
.screen-tile .tools .btn { flex: 1; height: 30px; padding: 0; }
.screens-grid[data-cols="6"] .screen-tile .tools, .screens-grid[data-cols="8"] .screen-tile .tools { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }

/* 홈 */
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.quick a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); font-weight: 700; font-size: .92rem; }
.quick a:hover { border-color: var(--brand-line); }
.quick a .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; font-size: .9rem; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 문의 */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg-bubble { max-width: 78%; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.msg-bubble.mine { align-self: flex-end; background: var(--brand-soft); border-color: var(--brand-line); }
.msg-bubble.staff { align-self: flex-start; }
.msg-bubble .who { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; display: flex; gap: 8px; }
.msg-bubble .text { font-size: .94rem; line-height: 1.7; white-space: normal; word-break: break-word; }
.notice-body { line-height: 1.85; color: var(--text-2); }

/* 영수증 */
.receipt { max-width: 720px; margin: 0 auto; background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.receipt h1 { font-size: 1.6rem; text-align: center; letter-spacing: .3em; margin-bottom: 28px; }
.receipt table { border: 1px solid #ddd; }
.receipt th, .receipt td { border: 1px solid #ddd; padding: 10px 12px; background: #fff !important; color: #111; }
.receipt th { width: 26%; background: #f6f6f6 !important; color: #444; }
.receipt .sum { text-align: right; font-size: 1.3rem; font-weight: 800; margin-top: 18px; }
.receipt .note { color: #666; font-size: .82rem; margin-top: 24px; line-height: 1.7; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .site-banner, .no-print, .toasts { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .receipt { border: 0; padding: 0; }
}

/* 관리자 상세 */
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-rev { fill: var(--brand); }
.chart .bar-chg { fill: var(--ok); opacity: .55; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart .grid-line { stroke: var(--line); }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ========== 약관 · 정책 ========== */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 24px 32px; }
.legal h1 { font-size: 2rem; font-weight: 800; }
.legal .meta { color: var(--muted); margin-top: 8px; }
.legal h2 { font-size: 1.12rem; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.8; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal table { margin-top: 10px; border: 1px solid var(--line); }

/* ========== 반응형 ========== */
@media (max-width: 1080px) {
  .hero .inner { grid-template-columns: 1fr; }
  .fleet { max-width: 560px; margin: 0 auto; width: 100%; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .dev-block { grid-template-columns: 1fr; }
  .viewer, .buy, .wallet-hero, .home-grid, .detail-grid { grid-template-columns: 1fr; }
  .screens-grid { --cols: 3 !important; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .page { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-2, .compare { grid-template-columns: 1fr; }
  .site-nav .links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap, .site-nav .inner { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 24px; }
  .features, .steps { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(4, 1fr); }
  .fleet-grid .mini-phone:nth-child(n+13) { display: none; }
  .fleet-float { display: none; }
  .cta-band { padding: 32px 24px; }
  .period-options, .amount-presets, .quick { grid-template-columns: 1fr 1fr; }
  .screens-grid { --cols: 2 !important; }
  .msg-bubble { max-width: 92%; }
  .receipt { padding: 20px; }
  .toolbar .search { width: 100%; }
  .viewer-stage { padding: 16px; flex-direction: column; align-items: center; }
  .viewer-tools { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .device-frame { width: min(340px, calc(100vw - 64px)); }
  .site-nav .inner .btn.ghost { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats .stat:nth-child(odd):last-child { grid-column: 1 / -1; }
  .stat { padding: 14px; }
  .stat .value { font-size: 1.25rem; }
  /* 기기 표 → 카드 */
  .device-table thead { display: none; }
  .device-table tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
  .device-table tbody tr:last-child { border-bottom: 0; }
  .device-table td { border: 0; padding: 0; background: none !important; }
  .device-table td[colspan] { grid-column: 1 / -1; }
  .device-table td.check { grid-row: 1 / 3; width: auto; }
  .device-table td:nth-child(2) { grid-column: 2; }
  .device-table td:nth-child(3) { display: none; }
  .device-table td:nth-child(4) { grid-column: 3; grid-row: 1; justify-self: end; }
  .device-table td:nth-child(5) { grid-column: 2 / 4; font-size: .84rem; }
  .device-table td:nth-child(6) { grid-column: 1 / -1; }
  .device-table td:nth-child(6) .row { justify-content: stretch; }
  .device-table td:nth-child(6) .btn { flex: 1; }
  .device-table .rename { opacity: 1; }
}
