:root {
  --blue: #2f6df6;
  --blue-dark: #1f56d6;
  --blue-soft: #eaf1ff;
  --blue-tint: #f4f8ff;
  --green-soft: #e3f7ec;
  --green: #18a058;
  --yellow-soft: #fff1d6;
  --yellow: #f7a21b;
  --text: #111827;
  --sub: #4b5563;
  --muted: #8a93a3;
  --line: #e5e9f0;
  --bg: #ffffff;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(47, 109, 246, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-line { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.ic { width: 20px; height: 20px; }

/* 상단 메뉴 */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #f0f2f6; }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-icon { width: 56px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text small { font-size: .78rem; letter-spacing: .12em; color: var(--sub); font-weight: 500; }
.gnb { display: flex; align-items: center; gap: 8px; }
.gnb a {
  position: relative; padding: 10px 22px; color: var(--text);
  text-decoration: none; font-weight: 500; font-size: 1.08rem;
}
.gnb a.active { color: var(--blue); font-weight: 700; }
.gnb a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--blue); border-radius: 2px;
}
.gnb a:hover { color: var(--blue); }
.gnb .gnb-login { margin-left: 12px; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 8px 18px; font-size: .95rem; font-weight: 700; }
.gnb .gnb-login.active::after { display: none; }
.gnb .gnb-login:hover, .gnb .gnb-login.active { background: var(--blue); color: #fff; }
.menu-btn { display: none; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7f9fc 0%, #fbfcfe 100%); }
.hero-blob {
  position: absolute; right: -8%; top: -10%; width: 62%; height: 120%;
  background: radial-gradient(ellipse at 60% 50%, #dfeaff 0%, #eef4ff 55%, rgba(238,244,255,0) 72%);
  border-radius: 50% 0 0 50%;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.22; }
.lead { margin-top: 28px; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--sub); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.hero-art svg { width: 100%; max-width: 380px; display: block; margin-left: auto; }
.note { transform-origin: 205px 100px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .note { animation: none; } }

/* 3가지 서비스 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 72px; padding-bottom: 72px; }
.feature { text-align: center; padding: 8px 24px; }
.feature + .feature { border-left: 1px solid var(--line); }
.f-icon { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 28px; display: grid; place-items: center; }
.f-icon svg { width: 60px; height: 60px; }
.f-blue { background: var(--blue-soft); color: var(--blue); }
.f-green { background: var(--green-soft); color: var(--green); }
.f-yellow { background: var(--yellow-soft); color: var(--yellow); }
.feature h3 { font-size: 1.5rem; font-weight: 800; }
.feature p { margin-top: 10px; color: var(--sub); font-size: 1.1rem; }

/* 공통 구역 */
.section { padding: 96px 0; }
.section-tint { background: var(--blue-tint); }
.kicker { text-align: center; color: var(--blue); font-weight: 800; letter-spacing: .18em; font-size: .9rem; }
.sec-title { text-align: center; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.sec-sub { text-align: center; color: var(--sub); margin: 14px auto 48px; max-width: 640px; font-size: 1.08rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: box-shadow .2s, border-color .2s; }
.info-card:hover { border-color: #c9d9ff; box-shadow: 0 14px 30px rgba(47,109,246,.08); }
.info-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.info-card p { color: var(--sub); }

/* 이용 절차 */
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 32px 18px; text-align: center; box-shadow: 0 6px 20px rgba(17,24,39,.05); }
/* 단계 사이 화살표: 박스 사이 간격(48px) 가운데에 파란 동그라미 */
.steps li:not(:last-child)::after {
  content: "›"; position: absolute; right: -41px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px; box-sizing: border-box;
  font-size: 1.7rem; font-weight: 700; line-height: 1; z-index: 1; box-shadow: 0 4px 12px rgba(47, 109, 246, .35);
}
.step-no { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--blue); background: var(--blue-soft); padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.step-ic { font-size: 2.4rem; margin: 18px 0 10px; }
.steps h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--sub); font-size: .97rem; }

/* 아래쪽 문의 */
.footer { padding: 24px 0 40px; }
.contact-box {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  background: var(--blue-tint); border-radius: 28px; padding: 36px 24px;
}
.contact-box > * { justify-self: center; }
.contact-box > * + * { border-left: 1px solid #d8e2f3; padding-left: 40px; justify-self: stretch; }
.contact-item { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--text); }
.c-ic { width: 44px; height: 44px; color: var(--blue); flex: none; }
.contact-item span { display: flex; flex-direction: column; line-height: 1.35; }
.contact-item small { color: var(--sub); font-size: .95rem; }
.contact-item b { font-size: 1.15rem; font-weight: 600; }
.contact-item b.tel { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }
.copy { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 28px; }
.footer-sm { border-top: 1px solid var(--line); padding-top: 8px; }
.footer-sm a { color: var(--sub); }

/* 신청 · 로그인 폼 */
.sub-page main { background: var(--blue-tint); min-height: calc(100vh - 220px); }
.sub-page .section { padding: 64px 0 88px; }
.form-wrap { max-width: 760px; }
.mini-steps { list-style: none; padding: 0; margin: -16px 0 28px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mini-steps li { padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--muted); font-weight: 700; font-size: .9rem; border: 1px solid var(--line); }
.mini-steps li.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.form-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 12px 36px rgba(17,24,39,.06); }
fieldset { border: 0; margin: 0 0 28px; padding: 0; }
legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; padding: 0; }
legend small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.form-card label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form-card em { color: #e5484d; font-style: normal; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 14px 16px;
  font: inherit; font-weight: 400; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
input.invalid { border-color: #e5484d; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.form-card .chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.chip input, .agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.chip:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.form-card .agree { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; font-weight: 500; }
.form-error { background: #fff0f0; color: #c62828; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }

.done { text-align: center; }
.done-ic { font-size: 3.4rem; }
.done h2 { font-size: 1.6rem; margin: 10px 0 14px; }
.done p { color: var(--sub); margin-bottom: 28px; }
.done b.tel { display: inline-block; font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -0.01em; }
/* 신청 완료 화면의 임시 계정 상자 */
.temp-acc { margin: 0 auto 22px; max-width: 420px; padding: 20px 22px 16px; border: 2px dashed var(--blue); border-radius: 16px; background: var(--blue-tint); }
.done .temp-acc p { margin: 0; }
.done .temp-acc .temp-acc-label { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .88rem; font-weight: 700; }
.temp-acc dl { display: grid; gap: 8px; margin: 0 0 12px; }
.temp-acc dl div { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.temp-acc dt { color: var(--sub); font-size: .95rem; }
.temp-acc dd { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--blue); letter-spacing: .04em; user-select: all; }
.done .temp-acc .temp-acc-note { color: var(--sub); font-size: .9rem; }
.done .temp-acc-official { font-size: .95rem; }

.login-card { max-width: 440px; margin: 0 auto; }
.login-help { text-align: center; margin-top: 18px; color: var(--sub); font-size: .95rem; }
.welcome { background: #fff; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; text-align: center; color: var(--sub); }
.welcome b { color: var(--text); }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; margin-left: 6px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-grid-one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.dl-card { background: #fff; border-radius: 24px; padding: 32px; text-align: center; border: 2px solid transparent; display: flex; flex-direction: column; }
.dl-card.recommended { border-color: var(--blue); }
.dl-ic { font-size: 3rem; }
.dl-card h3 { font-size: 1.25rem; font-weight: 800; margin: 10px 0 4px; }
.dl-card p { color: var(--muted); margin-bottom: 22px; }
.dl-card .btn { margin-top: auto; }
.install-guide { background: #fff; border-radius: 24px; padding: 32px; margin-top: 20px; }
.install-guide h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.install-guide ol { margin: 0 0 16px; padding-left: 22px; color: var(--sub); display: grid; gap: 6px; }

/* ── 태블릿 ── */
@media (max-width: 1024px) {
  .header-inner { height: 72px; }
  .logo-icon { width: 46px; height: 38px; }
  .logo-text strong { font-size: 1.35rem; }
  .gnb a { padding: 10px 14px; font-size: 1rem; }
  .gnb a.active::after { bottom: -12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2)::after { display: none; }
  .contact-box > * + * { padding-left: 24px; }
  .contact-item b.tel { font-size: 1.6rem; }
}

/* ── 모바일 ── */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 68px; }
  .header-inner { height: 64px; }
  .logo-icon { width: 40px; height: 33px; }
  .logo-text strong { font-size: 1.2rem; }
  .logo-text small { font-size: .65rem; }

  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .gnb {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(17,24,39,.08);
    padding: 8px 16px 16px; display: none;
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 14px 8px; border-bottom: 1px solid #f1f3f7; font-size: 1.05rem; }
  .gnb a.active::after { display: none; }
  .gnb .gnb-login { margin: 12px 0 0; text-align: center; padding: 12px; border-bottom: 1.5px solid var(--blue); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; padding-bottom: 56px; gap: 8px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 200px; margin: 0 auto; }
  .hero-blob { right: -30%; top: -5%; width: 120%; height: 55%; border-radius: 0 0 50% 50%; }
  .lead { margin-top: 18px; }
  .hero-cta { flex-direction: column; margin-top: 28px; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 16px 24px; font-size: 1.05rem; }

  .features { grid-template-columns: 1fr; gap: 12px; padding-top: 48px; padding-bottom: 48px; }
  .feature { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 18px; text-align: left; align-items: center; padding: 18px 4px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .f-icon { width: 76px; height: 76px; margin: 0; grid-row: span 2; }
  .f-icon svg { width: 36px; height: 36px; }
  .feature h3 { font-size: 1.2rem; align-self: end; }
  .feature p { margin-top: 2px; font-size: 1rem; align-self: start; }

  .section { padding: 64px 0; }
  .sec-sub { margin-bottom: 32px; font-size: 1rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .info-card { padding: 24px; }

  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; text-align: left; padding: 22px 20px; }
  .steps li:not(:last-child)::after { display: none; }
  .step-ic { grid-row: 1 / span 3; margin: 0; font-size: 2rem; align-self: center; }
  .step-no { justify-self: start; margin-bottom: 6px; }

  .contact-box { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 22px; gap: 20px; }
  .contact-box > * { justify-self: start; }
  .contact-box > * + * { border-left: 0; border-top: 1px solid #d8e2f3; padding: 20px 0 0; }
  .contact-item b.tel { font-size: 1.7rem; }

  .sub-page .section { padding: 40px 0 64px; }
  .mini-steps { gap: 4px; flex-wrap: nowrap; }
  .mini-steps li { padding: 5px 9px; font-size: .78rem; white-space: nowrap; }
  .form-card { padding: 26px 20px; border-radius: 20px; }
  .row-2, .dl-grid { grid-template-columns: 1fr; gap: 0; }
  .dl-grid { gap: 14px; }
  .install-guide { padding: 24px 20px; }
}

/* 개인정보 처리방침 */
.policy-wrap { max-width: 880px; }
.policy { background: #fff; border-radius: 24px; padding: 48px; margin-top: 36px; box-shadow: 0 12px 36px rgba(17,24,39,.06); color: var(--sub); }
.policy-intro { font-size: 1.05rem; color: var(--text); }
.policy-toc { background: var(--blue-tint); border-radius: 16px; padding: 22px 28px; margin: 28px 0 8px; }
.policy-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.policy-toc li { margin-bottom: 4px; }
.policy-toc a { color: var(--text); text-decoration: none; }
.policy-toc a:hover { color: var(--blue); text-decoration: underline; }
.policy section { padding-top: 36px; }
.policy h2 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.policy p + p, .policy p + .table-scroll, .policy .table-scroll + p, .policy p + ul { margin-top: 10px; }
.policy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.policy b { color: var(--text); }
.table-scroll { overflow-x: auto; }
.policy table { width: 100%; border-collapse: collapse; font-size: .95rem; border-top: 2px solid var(--text); }
.policy th, .policy td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy thead th { background: #f7f9fc; color: var(--text); font-weight: 700; white-space: nowrap; }
.policy tbody th { width: 110px; background: #f7f9fc; color: var(--text); font-weight: 700; }
.policy td:first-child { white-space: nowrap; }
.policy-date { font-weight: 700; color: var(--text); }
.policy-company { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.policy-company b { font-size: 1.05rem; }
.agree a { margin-left: 4px; font-weight: 600; }

@media (max-width: 768px) {
  .policy { padding: 26px 20px; border-radius: 20px; margin-top: 24px; }
  .policy-toc { padding: 18px 20px; }
  .policy-toc ol { columns: 1; }
  .policy section { padding-top: 28px; }
  .policy h2 { font-size: 1.08rem; }
  .policy th, .policy td { padding: 10px; font-size: .9rem; }
  .policy td:first-child { white-space: normal; min-width: 64px; }
}
