:root {
  --ink: #0b1220;
  --sub: #5b6472;
  --faint: #94a0ae;
  --blue: #1883ff;
  --blue-deep: #0f66d1;
  --blue-soft: #e9f4ff;
  --blue-soft2: #d8ecff;
  --line: #e7e9ee;
  --bg: #ffffff;
  --radius: 18px;
  --maxw: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Malgun Gothic",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- header ---------- */
header.gnb {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.gnb-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #6a8bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}
.brand .name {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
}

.brand .page {
  font-size: 14px;
  color: var(--sub);
}
nav.tabs {
  display: flex;
  gap: 36px;
}
nav.tabs a {
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  padding: 26px 0;
  position: relative;
  white-space: nowrap;
}
nav.tabs a.active {
  color: var(--ink);
}
nav.tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before {
  position: absolute;
  top: -6px;
}
.menu-btn span::after {
  position: absolute;
  top: 6px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero-glow {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft2);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1.hero-title {
  font-size: 56px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero-title .accent {
  display: block;
  color: var(--blue);
}
.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--sub);
  margin: 0 0 30px;
  max-width: 460px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.hero-cta svg {
  transition: transform 0.2s;
}
.hero-cta:hover svg {
  transform: translate(3px, 3px);
}
.hero-foot {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--faint);
}
.hero-foot svg {
  flex: none;
}

/* hero illustration (css-built) */
.art {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(155deg, #f4f7ff, #eef2ff 60%, #e7edff);
  border: 1px solid var(--blue-soft2);
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.7),
      transparent 40%
    ),
    radial-gradient(circle at 85% 85%, rgba(43, 87, 255, 0.14), transparent 45%);
}
.art .leaf {
  position: absolute;
  right: 6%;
  top: 8%;
  width: 120px;
  height: 120px;
  border-radius: 50% 50% 50% 8%;
  background: rgba(43, 87, 255, 0.12);
  transform: rotate(20deg);
}
.art .tag {
  position: absolute;
  top: 22px;
  left: 22px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.06);
  z-index: 3;
}
.art .tag2 {
  top: auto;
  bottom: 22px;
  left: auto;
  right: 22px;
}
.panel {
  position: absolute;
  left: 9%;
  top: 16%;
  width: 56%;
  height: 64%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(20, 30, 70, 0.25);
  padding: 18px;
  z-index: 2;
}
.panel .row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.panel .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.panel .dot:nth-child(1) {
  background: #ff6060;
}
.panel .dot:nth-child(2) {
  background: #ffb648;
}
.panel .dot:nth-child(3) {
  background: #43cf7c;
}
.panel .bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin: 16px 0;
}
.panel .bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--blue), #7b9bff);
  border-radius: 5px 5px 0 0;
  opacity: 0.85;
}
.panel .line {
  height: 9px;
  border-radius: 5px;
  background: var(--blue-soft2);
  margin-bottom: 8px;
}
.panel .line.w60 {
  width: 60%;
}
.panel .line.w40 {
  width: 40%;
  background: var(--blue-soft);
}
.panel .ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 65%, var(--blue-soft2) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.panel .ring i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: block;
}
.phone {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 38%;
  height: 70%;
  background: #0b1220;
  border-radius: 22px;
  padding: 8px;
  z-index: 3;
  box-shadow: 0 30px 60px -18px rgba(20, 30, 70, 0.35);
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.phone .screen .hd {
  height: 22%;
  background: linear-gradient(135deg, var(--blue), #6a8bff);
}
.phone .screen .ct {
  padding: 10px;
}
.phone .screen .card {
  height: 34px;
  border-radius: 8px;
  background: var(--blue-soft);
  margin-bottom: 8px;
}
.phone .screen .card2 {
  height: 52px;
  border-radius: 8px;
  background: #f4f6fb;
}
.ribbon {
  position: absolute;
  left: 20%;
  bottom: 4%;
  width: 70px;
  height: 70px;
  z-index: 4;
  background: var(--blue);
  border-radius: 10px;
  transform: rotate(-14deg);
  box-shadow: 0 18px 30px -10px rgba(43, 87, 255, 0.5);
}
.ribbon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 14px;
  height: 24px;
  background: var(--blue-deep);
  transform: translateX(-50%) skewX(-14deg);
}

/* ---------- start here ---------- */
.section {
  padding: 70px 0;
}
.bg {
  background: var(--blue-soft);
}
.sh-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
}
h2.sh-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.sh-note {
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.6;
  text-align: right;
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  background: #fff;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 22px 44px -24px rgba(20, 30, 70, 0.25);
  transform: translateY(-3px);
  border-color: var(--blue-soft2);
}
.card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
}
.card .num {
  font-weight: 800;
  font-size: 23px;
  color: var(--blue);
}
.card .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--sub);
}
.card .go {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.card:hover .go {
  background: var(--blue);
  border-color: var(--blue);
}
.card:hover .go svg {
  stroke: #fff;
}

/* ---------- doc body ---------- */
.doc-wrap {
  background: #fff;
  border-top: 1px solid var(--line);
}
.doc-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 70px 0;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
}
.toc .grp {
  margin-bottom: 26px;
}
.toc .grp-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.toc a {
  display: block;
  font-size: 13.5px;
  color: var(--sub);
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.active {
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 700;
}

.doc-main {
  min-width: 0;
}
.doc[id],
.doc-part[id],
#start-here {
  scroll-margin-top: 100px;
}
.doc-part {
  padding: 6px 0 54px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 54px;
}
.doc-part:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.part-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.part-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}
.part-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.part-eyebrow .part-num {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.part-eyebrow > span:not(.part-num) {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
h2.part-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.part-desc {
  font-size: 15.5px;
  color: var(--sub);
  margin: 0 0 34px;
  line-height: 1.7;
}

article.doc {
  margin-bottom: 44px;
}
article.doc:last-child {
  margin-bottom: 0;
}
h3.doc-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
}
.steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 40px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.steps li:first-child {
  border-top: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li code {
  background: var(--blue-deep);
  color: #fff;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
}
.steps li .sub {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--faint);
}
.steps li a.ext {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.callout {
  display: flex;
  gap: 12px;
  background: #fff4f4;
  border: 1px solid #ffd9d5;
  color: #d0021b;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 22px;
}
.callout svg {
  flex: none;
  margin-top: 1px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #f4f6fb;
  box-shadow: 0 20px 40px -28px rgba(20, 30, 70, 0.3);
}
.shot img {
  width: 100%;
}
.shot .ph {
  padding: 60px 0;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--faint);
}

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(10, 20, 50, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 60;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1020px) {
  .doc-wrap {
    padding: 20px;
  }
  .gnb-inner {
    padding: 20px;
  }
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .art {
    margin-top: 20px;
  }
  .cards3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .wrap,
  .gnb-inner {
    padding: 0 20px;
  }
  nav.tabs {
    display: none;
  }
  .menu-btn {
    display: none;
  }
  h1.hero-title {
    font-size: 38px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .section {
    padding: 48px 0;
  }
  .doc-grid {
    padding: 48px 0;
  }
}
/* 모바일쿠폰 구매·결제 강조 */
.toc a.toc-feature {
  position: relative;
  color: #1677ff;
  font-weight: 600;
  animation: couponTextBlink 2s ease-in-out infinite;
}

/* 글씨 */
@keyframes couponTextBlink {
  0%,
  100% {
    opacity: 1;
    color: #b516ff;
  }

  50% {
    opacity: 0.5;
    color: #a565ff;
  }
}

/* hover */
.toc a.toc-feature:hover {
  animation: none;
  opacity: 1;
  color: #0b6df0;
  background: #f5f9ff;
}

.toc a.toc-feature:hover::before {
  animation: none;
  opacity: 1;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 0 7px rgba(22, 119, 255, 0.45);
}

/* active 상태에서는 깜빡임 중지 */
.toc a.toc-feature.active {
  animation: none;
  opacity: 1;
  color: #1677ff;
  font-weight: 700;
}

.toc a.toc-feature.active::before {
  animation: none;
  opacity: 1;
  transform: translateY(-50%) scale(1);
  box-shadow: none;
  display: none;
}
