/* THelp 웹(홈·회사 전용 페이지) 공통 스타일. 색·간격은 변수에 모아 실서비스 디자인으로 바꾸기 쉽게 한다. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable-ko.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0fa59f;
  --brand-strong: #0b8984;
  --brand-ink: #076e6a;
  --brand-soft: #e3f7f5;
  --brand-glow: rgba(15, 165, 159, .28);
  --accent: #3b82f6;
  --ink: #0e1b26;
  --ink-2: #344353;
  --muted: #6a7888;
  --line: #e2e8ee;
  --line-strong: #cfd8e1;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --danger: #e04b3c;
  --ok: #18a058;
  --dark: #0b1620;
  --dark-2: #13222e;
  --shadow-sm: 0 1px 2px rgba(14, 27, 38, .06), 0 2px 8px rgba(14, 27, 38, .04);
  --shadow-md: 0 8px 24px rgba(14, 27, 38, .08), 0 2px 6px rgba(14, 27, 38, .05);
  --shadow-lg: 0 24px 60px rgba(14, 27, 38, .14), 0 6px 18px rgba(14, 27, 38, .06);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2cc4bc;
    --brand-strong: #39d2ca;
    --brand-ink: #7de6df;
    --brand-soft: rgba(44, 196, 188, .12);
    --brand-glow: rgba(44, 196, 188, .25);
    --ink: #e9f0f5;
    --ink-2: #c2ced8;
    --muted: #8796a5;
    --line: #22323f;
    --line-strong: #2d3f4e;
    --bg: #0a131a;
    --bg-soft: #0e1921;
    --surface: #111d26;
    --surface-2: #15232e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.modal-open { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.25; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.br-mobile { display: none; }

svg path, svg rect, svg circle { vector-effect: non-scaling-stroke; }
.btn svg, .icon-btn svg, .chip svg, .hero-points svg, .step-icon svg, .feature-icon svg,
.sec-item svg, .launch-close svg, .agent-go svg, .missing-icon svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 6px 18px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: 0 10px 26px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.18); filter: brightness(1.04); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: #0b2a2a; }
.btn-light:hover { background: #effcfa; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }

/* ---------- 상단 내비게이션 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand span { font-size: 23px; font-weight: 800; letter-spacing: -0.04em; }
.brand-sm span { font-size: 18px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg, .portal-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 380px at 82% 18%, rgba(47, 208, 198, .22), transparent 70%),
    radial-gradient(520px 300px at 62% 66%, rgba(59, 130, 246, .10), transparent 70%),
    radial-gradient(420px 300px at 8% 8%, rgba(47, 208, 198, .10), transparent 70%);
}
.hero-bg::after, .portal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%2394a3b8' stroke-opacity='.16'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .35;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }

.hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.16; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, #3b82f6 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin-top: 18px; max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.65; }

/* ---------- 인증번호 카드 ---------- */
.code-card {
  margin-top: 30px;
  max-width: 460px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.code-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.code-title { font-size: 15px; font-weight: 700; }
.code-hint { color: var(--muted); font-size: 13px; }

.otp { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.otp input {
  flex: 1 1 0;
  min-width: 0;
  height: 60px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  caret-color: var(--brand);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.otp input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-glow); }
.otp input.is-filled { background: var(--surface); border-color: color-mix(in srgb, var(--brand) 55%, var(--line-strong)); }
.otp-sep { flex: 0 0 10px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.is-complete .btn-primary { animation: ready .6s ease; }
@keyframes ready { 50% { transform: scale(1.02); } }
.is-busy { pointer-events: none; }
.is-busy .btn-primary { opacity: .7; }
.is-shake .otp { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.message { min-height: 22px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--danger); }
.message[data-kind="ok"] { color: var(--ok); }
.message:empty { min-height: 0; margin: 0; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.6; }

/* ---------- 히어로 그림(상담원 화면 모형) ---------- */
.hero-visual { position: relative; padding: 30px 10px 40px 30px; }
.mock-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
}
.mock-bar, .browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-bar i, .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar i:nth-child(1), .browser-bar i:nth-child(1) { background: #ff6b5f; }
.mock-bar i:nth-child(2), .browser-bar i:nth-child(2) { background: #ffbf3d; }
.mock-bar i:nth-child(3), .browser-bar i:nth-child(3) { background: #2bc840; }
.mock-bar span { margin-left: 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 172px 1fr; min-height: 320px; }
.mock-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-right: 1px solid var(--line); background: var(--surface); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; }
.mock-row b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
}
.mock-row span { display: flex; flex-direction: column; line-height: 1.3; }
.mock-row em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mock-row small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-row.is-live { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.mock-row.is-live b { background: var(--brand); color: #fff; }
.mock-row.is-live em { color: var(--brand-ink); }
.mock-row.is-done { opacity: .55; }
.mock-screen { padding: 14px; background: var(--surface-2); }
.mock-desktop {
  position: relative;
  height: 100%;
  min-height: 290px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b4d6b 0%, #1f7a85 55%, #36b3a6 100%);
}
.mock-app {
  position: absolute;
  left: 12%;
  top: 14%;
  width: 66%;
  height: 62%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.mock-app-bar { height: 22px; background: #eef2f5; border-bottom: 1px solid #e1e7ec; }
.mock-app-lines { display: grid; gap: 10px; padding: 16px; }
.mock-app-lines span { height: 9px; border-radius: 5px; background: #dfe6ec; }
.mock-app-lines span:nth-child(1) { width: 62%; background: #b9e8e4; }
.mock-app-lines span:nth-child(2) { width: 88%; }
.mock-app-lines span:nth-child(3) { width: 74%; }
.mock-app-lines span:nth-child(4) { width: 40%; }
.mock-cursor {
  position: absolute;
  left: 58%;
  top: 56%;
  width: 26px;
  height: 26px;
  fill: #fff;
  stroke: #0e1b26;
  stroke-width: 1.4;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.3));
  animation: cursor 6s ease-in-out infinite;
}
@keyframes cursor {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-70px, -40px); }
  55% { transform: translate(-30px, -64px); }
  80% { transform: translate(24px, -12px); }
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 14.5px; }
.float-card small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.float-connect { left: 0; bottom: 6px; }
.float-code { right: 0; top: 0; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.float-code b { font-size: 22px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
@keyframes float { 50% { transform: translateY(-8px); } }
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fd0c6, #0a8a85);
  color: #fff;
  font-weight: 700;
}
.online, .live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

/* ---------- 섹션 공통 ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head-left { margin: 0; text-align: left; }
.kicker { display: inline-block; margin-bottom: 12px; color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.section-head h2, .showcase h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p, .showcase-copy p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* 이용 방법 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { position: absolute; top: 26px; right: 26px; color: var(--line-strong); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.step-icon, .feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
}
.step-icon svg, .feature-icon svg { width: 26px; height: 26px; }
.step h3, .feature h3 { font-size: 20px; font-weight: 700; }
.step p, .feature p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* 기능 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .feature-icon { width: 46px; height: 46px; margin-bottom: 18px; border-radius: 13px; }
.feature .feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; }

/* 회사 전용 페이지 소개 */
.showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.showcase-copy .btn { margin-top: 28px; }
.browser { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.browser-bar span {
  flex: 1;
  max-width: 280px;
  margin-left: 14px;
  padding: 3px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.browser-body { position: relative; padding: 30px 28px 34px; overflow: hidden; }
.browser-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at 85% 0%, rgba(47, 208, 198, .18), transparent 70%);
  pointer-events: none;
}
.browser-kicker { position: relative; display: block; color: var(--brand); font-size: 13px; font-weight: 700; }
.browser-title { position: relative; display: block; margin: 2px 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }

/* 보안 */
.section-dark { position: relative; overflow: hidden; background: var(--dark); color: #e9f0f5; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 360px at 50% -10%, rgba(47, 208, 198, .22), transparent 70%);
  pointer-events: none;
}
.section-dark .wrap { position: relative; }
.section-dark .kicker { color: #5fe0d6; }
.section-dark .section-head p { color: #9fb0bf; }
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-item { padding: 26px 24px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.sec-item svg { width: 30px; height: 30px; margin-bottom: 18px; color: #5fe0d6; }
.sec-item h3 { font-size: 17px; font-weight: 700; }
.sec-item p { margin-top: 8px; color: #9fb0bf; font-size: 15px; }

/* 자주 묻는 질문 */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary, .launch-guide summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker, .launch-guide summary::-webkit-details-marker { display: none; }
.faq summary::after, .launch-guide summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after, .launch-guide[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq details p b { color: var(--ink-2); }

/* 하단 CTA */
.cta { padding: 0 0 104px; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 52px;
  border-radius: 28px;
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(120deg, #0b8984 0%, #11a8a0 55%, #2b8fd6 100%);
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(11, 137, 132, .5);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta p { margin-top: 8px; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 푸터 */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 30px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: auto; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 13.5px; }

/* ---------- 회사 전용 페이지 ---------- */
.portal-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-brand b { display: block; overflow: hidden; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; text-overflow: ellipsis; line-height: 1.3; }
.portal-brand small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.portal-badge {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2fd0c6, #0a8a85);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.chip svg { width: 16px; height: 16px; }

.portal { position: relative; overflow: hidden; padding-bottom: 72px; }
.portal-hero { padding: 64px 0 34px; text-align: center; }
.portal-hero h1 { margin-top: 18px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; }
.portal-hero .lead { margin: 12px auto 0; font-size: 17px; }

.portal-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 980px; }
.portal-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.portal-grid .message { grid-column: 1 / -1; text-align: center; }

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.panel h2 { font-size: 20px; font-weight: 800; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.panel-head p b { color: var(--brand-ink); }
.panel-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.panel-foot .live { flex: 0 0 auto; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.icon-btn {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.is-spinning svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.agent {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
button.agent:hover, button.agent:focus-visible { border-color: var(--brand); box-shadow: 0 8px 22px var(--brand-glow); transform: translateY(-2px); }
.agent-num {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2fd0c6, #0a8a85);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.agent-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.agent-info b { overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.agent-info small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.agent-info .online { width: 7px; height: 7px; }
.agent-go {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  transition: background-color .15s, color .15s;
}
.agent-go svg { width: 16px; height: 16px; }
button.agent:hover .agent-go { background: var(--brand); color: #fff; }
.agent.is-busy { opacity: .6; pointer-events: none; }
.agents-mini { position: relative; grid-template-columns: repeat(3, 1fr); }
.agents-mini .agent { cursor: default; padding: 12px; gap: 10px; }
.agents-mini .agent-num { flex-basis: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
.agents-mini .agent-info b { font-size: 14.5px; }
.agents-mini .agent-info small { font-size: 12px; }

.agents-empty { grid-column: 1 / -1; padding: 34px 16px; border: 1.5px dashed var(--line-strong); border-radius: 16px; text-align: center; }
.agents-empty b { display: block; font-size: 16px; }
.agents-empty p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.agents-empty-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fa59f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
}

.code-form .otp input { height: 56px; font-size: 26px; }

.panel-missing { text-align: center; padding: 40px 28px; }
.panel-missing h2 { margin-top: 6px; }
.panel-missing p { margin: 8px 0 22px; color: var(--muted); }
.missing-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.missing-icon svg { width: 28px; height: 28px; }

.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin-top: 44px; }
.mini-step { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.mini-step span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 800;
}
.mini-step p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.mini-step b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; }

.footer-portal .footer-inner { justify-content: space-between; }
.powered { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.powered b { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- 실행 안내 창 ---------- */
.launch-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(8, 18, 26, .48);
  backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.launch-card {
  position: relative;
  width: min(460px, 100%);
  padding: 34px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: rise .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.launch-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.launch-close:hover { background: var(--surface-2); color: var(--ink); }
.launch-close svg { width: 18px; height: 18px; }
.launch-mark { position: relative; width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; }
.launch-mark::before, .launch-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: ring 2.2s ease-out infinite;
}
.launch-mark::after { animation-delay: 1.1s; }
@keyframes ring { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
.launch-card h2 { font-size: 21px; font-weight: 800; }
.launch-sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.launch-sub b { color: var(--ink-2); }

.stepper { display: flex; justify-content: space-between; margin: 24px 0 22px; padding: 0; list-style: none; counter-reset: s; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; counter-increment: s; }
.stepper li + li::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.stepper li span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  font-size: 12.5px;
}
.stepper li span::before { content: counter(s); }
.stepper li.is-done { color: var(--ink-2); }
.stepper li.is-done span { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper li.is-done span::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.stepper li.is-done + li::before { background: var(--brand); }
.stepper li.is-active { color: var(--brand-ink); }
.stepper li.is-active span { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-glow); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 9px transparent; } }

.launch-help { padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; transition: box-shadow .3s, border-color .3s; }
.launch-help.is-nudge { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 4px var(--brand-glow); }
.launch-q { margin-bottom: 10px; font-size: 14.5px; font-weight: 700; text-align: center; }
.launch-guide { margin-top: 10px; }
.launch-guide summary { padding: 10px 36px 4px 2px; color: var(--ink-2); font-size: 14px; }
.launch-guide summary::after { right: 8px; width: 7px; height: 7px; }
.guide-item { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.guide-item b { font-size: 14px; }
.guide-item p { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
kbd {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- 반응형 ---------- */
.first-visit { margin: 18px 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.first-visit a, .guide-link { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.guide-link { display: inline-block; margin-top: 18px; font-size: 14px; }
.launch-retry { margin-top: 10px; }
.launch-status { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.launch-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
.agents > [role="listitem"] { min-width: 0; }
.agents > [role="listitem"] > .agent { width: 100%; height: 100%; }
button:disabled { cursor: wait; opacity: .65; }
#launchRetry:disabled { cursor: default; }
@media (max-width: 1000px) {
  .hero-grid, .showcase, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 760px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .mini-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .br-mobile { display: inline; }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-actions .btn-ghost:not(.btn-sm) { display: none; }
  .hide-mobile { display: none; }
  .hero { padding: 44px 0 64px; }
  .lead { font-size: 16px; }
  .code-card { padding: 16px; border-radius: 18px; }
  .otp { gap: 6px; }
  .otp input { height: 52px; font-size: 24px; border-radius: 12px; }
  .otp-sep { flex-basis: 6px; }
  .hero-visual { padding: 26px 0 34px; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-list { display: none; }
  .mock-window { transform: none; }
  .float-code b { font-size: 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .features, .security { grid-template-columns: minmax(0, 1fr); }
  .agents-mini { grid-template-columns: minmax(0, 1fr); }
  .agents-mini .agent:nth-child(n+3) { display: none; }
  .cta { padding-bottom: 72px; }
  .cta-inner { padding: 32px 24px; border-radius: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .portal-hero { padding: 40px 0 24px; }
  .panel { padding: 20px; border-radius: 18px; }
  .agents { grid-template-columns: minmax(0, 1fr); }
  .chip span { display: none; }
  .chip { padding: 0 11px; }
  .launch-card { padding: 30px 20px 22px; }
}

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

/* 처음 이용 고객: 받은 프로그램에 입력할 인증번호 */
.launch-code {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--line));
  border-radius: 16px;
  background: var(--brand-soft);
}
.launch-code small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.launch-code b {
  display: block;
  margin-top: 4px;
  color: var(--brand-ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
/* Product wordmark color stays independent of a company portal theme. */
.wordmark-accent { color: #d83933; font-style: normal; }

/* 회사 맞춤 화면: 연결 전 안내 문구 + '동의합니다'(회사가 정한 경우에만 보인다) */
.company-consent { margin: 18px auto 0; max-width: 640px; padding: 16px 18px; border: 1px solid var(--line-strong); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); }
.company-consent h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.company-consent p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.6; white-space: pre-line; max-height: 220px; overflow: auto; }
.company-consent-check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; }
.company-consent-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.company-consent.is-shake { animation: shake .4s ease; border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .company-consent.is-shake { animation: none; } }
/* 회사 대표 색상을 쓰면 기본 청록 그라데이션 배지도 회사 색으로 */
:root[data-brand="company"] .agent-num,
:root[data-brand="company"] .portal-badge { background: var(--brand); }
/* 상담 가능 시간 안내(회사가 정한 경우). 시간 밖이면 강조 */
.service-hours { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 12px auto 0; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--ink-2); font-size: 14px; }
.service-hours b { color: var(--brand-ink); }
.service-hours.is-closed { background: #fff4e5; color: #6b4a12; border: 1px solid #f3c27a; border-radius: var(--radius-sm); }
.service-hours.is-closed b { color: #8a4b00; }
@media (prefers-color-scheme: dark) { .service-hours.is-closed { background: #3a2a10; color: #f6d9a8; border-color: #7a5520; } .service-hours.is-closed b { color: #ffc46b; } }
.service-hours .nowrap { white-space: nowrap; }
