:root {
  --canvas: #07111f;
  --panel: #0d1a2c;
  --raised: #13233a;
  --line: #263954;
  --text: #f7f9fc;
  --muted: #aab8cb;
  --accent: #59d5a8;
  --accent-ink: #052218;
  --danger: #ff7b7b;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color-scheme: dark; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.shell { min-height: 100svh; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.panel { width: min(100%, 520px); margin: 0 auto; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 18px 50px rgb(0 0 0 / 28%); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(1.55rem, 8vw, 2.15rem); letter-spacing: -.045em; line-height: 1.08; }
.step-badge { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 22px 0 14px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #091525; }
.tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.tab.active { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px #34506f; }
.tab:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgb(89 213 168 / 45%); outline-offset: 2px; }
.summary { min-height: 44px; margin: 0 1px 15px; color: var(--muted); font-size: .89rem; line-height: 1.55; }
.card { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--raised); }
.section-heading { display: flex; align-items: center; gap: 11px; }
.number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.number.complete { background: #274b43; color: var(--accent); }
h2 { margin: 0 0 3px; font-size: 1.03rem; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.phone-field { display: block; margin-top: 19px; }
.phone-field span, .command-preview span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.phone-field input { width: 100%; min-height: 49px; padding: 0 13px; border: 1px solid #39516f; border-radius: 11px; outline: none; background: #091525; color: var(--text); letter-spacing: .04em; }
.phone-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(89 213 168 / 13%); }
.phone-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 1px 0; }
.phone-tools span { color: var(--muted); font-size: .67rem; line-height: 1.4; }
.small-button { flex: 0 0 auto; border: 0; background: transparent; color: #c5d3e4; font-size: .68rem; text-decoration: underline; cursor: pointer; }
.command-preview { margin: 15px 0; padding: 12px 13px; border: 1px dashed #3b5471; border-radius: 11px; background: #0a1728; }
.command-preview code { color: var(--accent); font: 800 .93rem "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }
.primary-button { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 900; cursor: pointer; }
.primary-button:disabled { cursor: not-allowed; opacity: .42; }
.safety { margin: 11px 2px 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.browser-warning { margin: 16px 0 0; padding: 11px 12px; border: 1px solid rgb(255 186 96 / 40%); border-radius: 11px; background: rgb(255 186 96 / 8%); color: #ffe0b5; font-size: .75rem; line-height: 1.5; }
.action-list { display: grid; gap: 9px; margin-top: 19px; }
.action { min-height: 62px; padding: 11px 13px; border: 1px solid #3a5574; border-radius: 12px; background: #0a1728; color: var(--text); text-align: left; cursor: pointer; }
.action span, .action small { display: block; }
.action span { margin-bottom: 3px; font-size: .9rem; font-weight: 800; }
.action small { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.action.danger { border-color: rgb(255 123 123 / 45%); }
.action.danger span { color: var(--danger); }
.action:disabled { cursor: not-allowed; opacity: .48; }
.text-button { width: 100%; margin-top: 13px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: .75rem; text-decoration: underline; cursor: pointer; }
.notice { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgb(89 213 168 / 8%); color: #d8f8ec; font-size: .75rem; line-height: 1.45; }
footer { margin: 16px 2px 0; color: #7f91a8; font-size: .66rem; line-height: 1.55; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #63748a; }
.dot.online { background: var(--accent); box-shadow: 0 0 0 3px rgb(89 213 168 / 12%); }
.launch-panel { margin-top: max(18vh, 70px); }
.launch-copy { margin: 18px 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.primary-link { display: grid; width: 100%; min-height: 52px; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 900; text-decoration: none; }
.launch-status { margin: 12px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

@media (min-width: 560px) {
  .shell { display: grid; place-items: center; padding: 30px; }
  .panel { padding: 24px; }
}

@media (max-width: 370px) {
  .phone-tools { align-items: flex-start; flex-direction: column; }
  .small-button { min-height: 34px; padding: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: enter 180ms ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(5px); } }
}
