/* AI Pack / AI요금제연구소 — 공통 스타일
   원본(React + Tailwind) 디자인 토큰을 그대로 옮긴 것입니다. */

:root {
  --bg: #fcfcf9;
  --white: #fff;
  --z900: #18181b;
  --z800: #27272a;
  --z700: #3f3f46;
  --z600: #52525b;
  --z500: #71717a;
  --z400: #a1a1aa;
  --z300: #d4d4d8;
  --z200: #e4e4e7;
  --z100: #f4f4f5;
  --z50: #fafafa;

  --gemini: #4285f4;
  --chatgpt: #10a37f;
  --claude-bg: #d4a27f;
  --claude-ink: #b07c4f;

  --tip-bg: #f0f6ff;
  --tip-ink: #3a5fa8;
  --alt-bg: #f8f7f4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--z900);
  font-family: Inter, "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* 한글은 어절 단위로 끊는다. 없으면 "챗GPT" 가 "챗 / GPT" 로 쪼개진다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection {
  background: var(--z900);
  color: #fff;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 640px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--z100);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.site-header__bar {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: flex;
  height: 32px;
  width: 32px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--z900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__sep {
  font-weight: 400;
  color: var(--z400);
}

.nav {
  display: none;
  align-items: center;
  /* 카테고리가 늘어나도 한 줄에 들어가게. 넓어지면 다시 벌어진다 */
  gap: 14px;
}

@media (min-width: 1100px) {
  .nav {
    gap: 24px;
  }
}

.nav a {
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--z500);
  transition: color 0.15s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--z900);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}


.menu-btn {
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  color: var(--z900);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.mobile-nav {
  border-top: 1px solid var(--z100);
  background: #fff;
  padding: 16px 20px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  border-radius: 8px;
  background: var(--z50);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 32px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 80px;
  }
}

.hero__inner {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 6px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pill__tag {
  border-radius: 999px;
  background: var(--z900);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.pill__text {
  font-size: 12px;
  font-weight: 500;
  color: var(--z600);
}

.hero h1 {
  text-wrap: balance;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .muted {
  color: var(--z400);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 44px;
    line-height: 1.1;
  }
}

.hero__lead {
  margin: 20px auto 0;
  max-width: 560px;
  text-wrap: balance;
  font-size: 16px;
  line-height: 1.6;
  color: var(--z500);
}

@media (min-width: 640px) {
  .hero__lead {
    font-size: 17px;
  }
}

.hero__lead br {
  display: none;
}

@media (min-width: 640px) {
  .hero__lead br {
    display: block;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.chip {
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--z700);
}

/* ---------- 요약 비교표 ---------- */

.summary {
  margin: 48px auto 0;
  max-width: 880px;
  overflow: hidden;
  border: 1px solid var(--z200);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 40px -16px rgba(0, 0, 0, 0.12);
}

.summary__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--z100);
  padding: 16px 20px;
}

.summary__row:last-of-type {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .summary__row {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.summary__head {
  background: rgba(250, 250, 250, 0.7);
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--z400);
}

.summary__service {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-dot {
  display: flex;
  height: 28px;
  width: 28px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.summary__name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-center {
  text-align: center;
}

.t-right {
  text-align: right;
}

@media (min-width: 640px) {
  .sm-center {
    text-align: center;
  }
}

.summary__free {
  font-size: 14px;
  font-weight: 500;
}

.summary__paid {
  font-size: 13px;
  font-weight: 500;
  color: var(--z700);
}

.badge-dark {
  display: inline-block;
  border-radius: 999px;
  background: var(--z900);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.dash {
  font-size: 12px;
  color: var(--z400);
}

.summary__note {
  background: var(--z50);
  padding: 12px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--z400);
}

@media (min-width: 640px) {
  .summary__note {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ---------- 섹션 공통 ---------- */

.section {
  scroll-margin-top: 80px;
}

.section--white {
  background: #fff;
}

.section--alt {
  background: var(--alt-bg);
}

.section__inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 640px) {
  .section__inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow__mark {
  display: flex;
  height: 24px;
  width: 24px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.eyebrow__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.section h2 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 32px;
  }
}

.section__desc {
  margin-top: 8px;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--z500);
}

.link-btn {
  align-self: flex-start;
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

.link-btn:hover,
.link-btn:focus-visible {
  background: var(--z50);
}

/* ---------- 요금제 카드 ---------- */

.plans {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--z200);
  border-radius: 18px;
  background: var(--bg);
  padding: 24px;
}

.plan--hl {
  border-color: var(--z900);
  background: var(--z900);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.4);
}

.plan__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--z500);
}

.plan--hl .plan__name {
  color: var(--z300);
}

.plan__price {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
}

.plan__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--z400);
}

.plan__badge {
  flex: none;
  border-radius: 999px;
  background: #fff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--z900);
  white-space: nowrap;
}

.plan__features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan__features li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--z600);
}

.plan--hl .plan__features li {
  color: var(--z200);
}

.tick {
  flex: none;
  margin-top: 1px;
  color: var(--z300);
}

.plan--hl .tick {
  color: var(--z500);
}

.plan__cta {
  margin-top: 24px;
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--z700);
}

.plan--hl .plan__cta {
  border-color: #fff;
  background: #fff;
  color: var(--z900);
}

/* 카드 높이를 맞추기 위해 CTA 를 아래로 밀어냄 */
.plan__spacer {
  flex: 1 1 auto;
}

/* ---------- 보조 설명 박스 ---------- */

.tip {
  margin-top: 24px;
  border-radius: 12px;
  background: var(--tip-bg);
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--tip-ink);
}

.tip b {
  font-weight: 600;
}

.tip u {
  text-underline-offset: 2px;
}

.notes {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .notes--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .notes--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note {
  border: 1px solid var(--z200);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--z600);
}

.note b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--z900);
}

/* ---------- 비교 카드 (#compare) ---------- */

.compare__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.compare__head h2 {
  margin-top: 0;
  font-size: 22px;
}

@media (min-width: 640px) {
  .compare__head h2 {
    font-size: 26px;
  }
}

.compare__lead {
  margin-top: 8px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--z500);
}

.tag-outline {
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--z500);
  white-space: nowrap;
}

.cards {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--z200);
  border-radius: 20px;
  background: #fff;
}

.card__best {
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 999px;
  background: var(--z900);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.card__body {
  padding: 24px;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__mark {
  display: flex;
  height: 36px;
  width: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.card__name {
  font-size: 16px;
  font-weight: 600;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.tier {
  border-radius: 12px;
  background: var(--z50);
  padding: 16px;
}

.tier--paid {
  border: 1px solid var(--z900);
  background: var(--z900);
  color: #fff;
}

.tier__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--z400);
}

.tier__price {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.tier--paid .tier__price {
  font-size: 15px;
  line-height: 1.2;
}

.tier__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--z300);
}

.tier__list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier__list li {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--z600);
}

.tier--paid .tier__list li {
  font-size: 11.5px;
  color: var(--z300);
}

.tier__list .dotmark {
  flex: none;
  color: var(--z300);
}

.tier--paid .tier__list .dotmark {
  color: var(--z600);
}

.card__foot {
  margin-top: auto;
  border-top: 1px solid var(--z100);
  background: var(--z50);
  padding: 12px 24px;
  font-size: 11px;
  color: var(--z500);
}

.card__foot b {
  font-weight: 500;
  color: var(--z700);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--z900);
  color: #fff;
}

.faq__inner {
  display: grid;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .faq__inner {
    grid-template-columns: 1.1fr 1.9fr;
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.faq h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.faq__lead {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--z400);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.faq__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq__q {
  font-size: 14px;
  font-weight: 600;
}

.faq__a {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--z400);
}

/* ---------- 광고 ---------- */

.ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}


.ad__box {
  width: 100%;
  max-width: 728px;
  overflow: hidden;
  border: 1px solid var(--z100);
  border-radius: 12px;
  background: rgba(250, 250, 250, 0.5);
}

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 1px solid var(--z200);
  background: var(--bg);
}

.site-footer__inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .site-footer__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer__about {
  max-width: 520px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__mark {
  display: flex;
  height: 28px;
  width: 28px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--z900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.site-footer__name {
  font-size: 14px;
  font-weight: 600;
}

.disclaimer {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--z500);
}


.link-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .link-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.link-col__title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--z900);
}

.link-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-col a {
  color: var(--z600);
  transition: color 0.15s;
}

.link-col a:hover,
.link-col a:focus-visible {
  color: var(--z900);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  border-top: 1px solid var(--z200);
  padding-top: 24px;
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__copy {
  font-size: 12px;
  color: var(--z400);
}

.site-footer__made {
  font-size: 11px;
  color: var(--z400);
}

/* ---------- 본문 페이지(약관/정책/문의) ---------- */

.doc {
  padding-top: 48px;
  padding-bottom: 64px;
}

.doc__inner {
  margin: 0 auto;
  max-width: 760px;
}

.doc h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .doc h1 {
    font-size: 34px;
  }
}

.doc__updated {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--z400);
}

.doc h2 {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.doc p,
.doc li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--z700);
}

.doc p {
  margin-top: 12px;
}

.doc ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc ul li {
  position: relative;
  padding-left: 16px;
}

.doc ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--z400);
}

.doc a {
  color: var(--tip-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.doc th,
.doc td {
  border: 1px solid var(--z200);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.doc th {
  background: var(--z50);
  font-weight: 600;
  white-space: nowrap;
}

.doc__scroll {
  overflow-x: auto;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--z500);
}

.back-link:hover {
  color: var(--z900);
}

/* ---------- #compare 섹션 여백 ---------- */

.compare {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .compare {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ---------- 좁은 화면 요약표 보정 ----------
   4등분 그리드는 390px 에서 서비스명 칸이 78px 밖에 안 돼
   "Google Gemini" 가 "Goo/gle/Gem/ini" 로 잘린다.
   서비스명에 폭을 더 주고, 영문은 단어 중간에서 끊지 않는다. */

.summary__name {
  overflow-wrap: normal;
}

@media (max-width: 520px) {
  .summary__row {
    grid-template-columns:
      minmax(0, 1.7fr) minmax(0, 0.7fr)
      minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .summary__head,
  .summary__note {
    padding-left: 14px;
    padding-right: 14px;
  }

  .summary__name {
    font-size: 13px;
  }

  .logo-dot {
    height: 24px;
    width: 24px;
    font-size: 11px;
  }

  .badge-dark {
    padding: 3px 7px;
    font-size: 10px;
  }
}

/* ---------- 4단 요금제 그리드 ----------
   2026년 9월 개편으로 세 서비스 모두 플랜이 4개가 됐다.
   1120px 에서 4열, 태블릿에서 2열, 모바일에서 1열. */

@media (min-width: 768px) {
  .plans--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .plans--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .plans--4 .plan {
    padding: 20px 18px;
  }

  .plans--4 .plan__price {
    font-size: 20px;
  }

  .plans--4 .plan__badge {
    padding: 3px 7px;
    font-size: 9px;
  }

  .plans--4 .plan__features li {
    font-size: 12.5px;
  }
}

/* ---------- 빵부스러기 ---------- */

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--z400);
}

.crumb a {
  color: var(--z500);
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--z900);
}

.crumb__sep {
  color: var(--z300);
}

/* ---------- 본문 페이지 히어로 ---------- */

.page-hero {
  padding-top: 24px;
  padding-bottom: 8px;
}

.page-hero h1 {
  max-width: 20ch;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 40px;
  }
}

.page-hero__lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--z500);
}

.page-hero__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 본문 산문 ---------- */

.prose {
  max-width: 66ch;
}

.prose h2 {
  margin-top: 48px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin-top: 30px;
  font-size: 16.5px;
  font-weight: 600;
}

.prose p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--z700);
}

.prose ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose ul li {
  position: relative;
  padding-left: 17px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--z700);
}

.prose ul li::before {
  content: "·";
  position: absolute;
  left: 5px;
  color: var(--z400);
}

.prose a {
  color: var(--z900);
  text-decoration: underline;
  text-underline-offset: 2.5px;
  text-decoration-color: var(--z300);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose b {
  font-weight: 600;
  color: var(--z900);
}

/* ---------- 비교 표 (본문용) ---------- */

.dtable {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--z200);
  border-radius: 10px;
  background: #fff;
}

.dtable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.dtable th,
.dtable td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--z100);
  line-height: 1.6;
}

.dtable thead th {
  background: var(--z50);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--z400);
  white-space: nowrap;
}

.dtable tbody tr:last-child td {
  border-bottom: 0;
}

.dtable td.n {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 다음 읽을거리 ---------- */

.next-up {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--z200);
}

.next-up__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--z400);
  letter-spacing: 0.03em;
}

.next-up__grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .next-up__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.next-up__card {
  display: block;
  border: 1px solid var(--z200);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  transition: border-color 0.15s;
}

.next-up__card:hover {
  border-color: var(--z400);
}

.next-up__card b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.next-up__card span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--z500);
}

/* ---------- 카드에서 상세 페이지로 ---------- */

.card__name a {
  color: inherit;
}

.card__name a:hover,
.card__name a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card__more {
  display: block;
  border-top: 1px solid var(--z100);
  background: #fff;
  padding: 11px 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--z700);
  transition: background 0.15s;
}

.card__more:hover,
.card__more:focus-visible {
  background: var(--z50);
  color: var(--z900);
}

/* 비교표는 읽기 폭(66ch)보다 넓게 빼준다. 4열이 들어가면 본문 폭에선 답답하다. */
.dtable {
  max-width: 840px;
}

/* ---------- 본문 안 유도 블록 ----------
   독자가 "그래서 나는 어디로 가야 하나"를 묻게 되는 지점에만 넣는다.
   글을 억지로 쪼개 이동을 만드는 용도가 아니다. */

.cta {
  margin: 32px 0;
  max-width: 66ch;
  border: 1px solid var(--z200);
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px;
}

.cta--dark {
  border-color: var(--z900);
  background: var(--z900);
}

.cta__q {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--z900);
}

.cta--dark .cta__q {
  color: #fff;
}

.cta__d {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--z600);
}

.cta--dark .cta__d {
  color: var(--z300);
}

.cta__btn {
  display: inline-block;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--z900);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.15s;
}

.cta--dark .cta__btn {
  background: #fff;
  color: var(--z900);
}

.cta__btn:hover,
.cta__btn:focus-visible {
  opacity: 0.85;
}

.cta__note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--z400);
}

.cta--dark .cta__note {
  color: var(--z500);
}

/* 절차 안내용 번호 목록 */
.prose__ol {
  margin-top: 14px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  counter-reset: step;
}

.prose__ol li {
  position: relative;
  padding-left: 32px;
  list-style: none;
  counter-increment: step;
  font-size: 15px;
  line-height: 1.75;
  color: var(--z700);
}

.prose__ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--z300);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--z500);
}

/* CTA 버튼은 .prose 안에 들어가므로 `.prose a`(0,1,1)를 이길 특정도가 필요하다.
   클래스를 두 개 쓰면 (0,2,0) 이 되어 확실히 이긴다. */

.cta .cta__btn {
  color: #fff;
  text-decoration: none;
}

.cta--dark .cta__btn {
  background: #fff;
  color: var(--z900);
}

.cta .cta__d a {
  color: inherit;
  text-decoration-color: currentColor;
}

/* ---------- 블로그 ---------- */

.kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.kicker-tag {
  border-radius: 999px;
  background: var(--z900);
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.kicker-date {
  font-size: 12px;
  color: var(--z400);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.post-card {
  display: block;
  border: 1px solid var(--z200);
  border-radius: 14px;
  background: #fff;
  padding: 22px 24px;
  transition: border-color 0.15s;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: var(--z400);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--z400);
}

.post-card__cat {
  border: 1px solid var(--z200);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
  color: var(--z600);
}

.post-card__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.post-card__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--z500);
}

.blog-empty {
  margin-top: 28px;
  border: 1px dashed var(--z300);
  border-radius: 14px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--z500);
}

/* ---------- 요금 카드 CTA 를 공식 페이지 링크로 ---------- */

a.plan__cta {
  display: block;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

a.plan__cta:hover,
a.plan__cta:focus-visible {
  border-color: var(--z900);
  background: var(--z900);
  color: #fff;
}

.plan--hl a.plan__cta:hover,
.plan--hl a.plan__cta:focus-visible {
  border-color: var(--z300);
  background: var(--z200);
  color: var(--z900);
}

/* ---------- 본문 사이에 들어가는 광고 ---------- */

.ad--mid {
  margin: 32px 0;
}


/* ---------- 목차 ---------- */
/* 첫 절(답) 뒤에 놓는다. 답보다 위에 두면 스니펫에 불리하다 */

.toc {
  margin: 32px 0 36px;
  border: 1px solid var(--z200);
  border-radius: 12px;
  background: var(--z50);
  padding: 20px 24px;
}

.toc__title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--z500);
}

.toc__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.toc__list li {
  font-size: 14.5px;
  line-height: 1.5;
}

.toc__list a {
  color: var(--z700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc__list a:hover,
.toc__list a:focus-visible {
  color: var(--z900);
  border-bottom-color: var(--z300);
}

@media (min-width: 720px) {
  .toc__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

/* 고정 헤더에 소제목이 가리지 않게 */
.prose h2[id] {
  scroll-margin-top: 84px;
}

/* ---------- 공유 ---------- */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
}

.share__label {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--z500);
}

.share__btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--z700);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.share__btn:hover,
.share__btn:focus-visible {
  border-color: var(--z400);
  color: var(--z900);
}

.share__btn.is-done {
  border-color: var(--z900);
  color: var(--z900);
}


/* ---------- 요금 비교표 ---------- */

.pricing-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 18px;
}

.pricing-filter__btn {
  border: 1px solid var(--z200);
  border-radius: 999px;
  background: #fff;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--z600);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pricing-filter__btn:hover {
  border-color: var(--z400);
  color: var(--z900);
}

.pricing-filter__btn.is-on {
  border-color: var(--z900);
  background: var(--z900);
  color: #fff;
}

table.pricing td {
  vertical-align: top;
}

.pricing-cat {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--z400);
}

.pricing-note__inline {
  display: block;
  margin-top: 6px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--z500);
}

.pricing-official {
  font-size: 12.5px;
  color: var(--z500);
}

.pricing-note {
  margin-top: 18px;
  border-left: 3px solid var(--z200);
  padding: 2px 0 2px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--z600);
}

tr[data-cat].is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .sm-hide {
    display: none;
  }
}


/* ---------- 연재 ---------- */

.series-nav {
  margin: 0 0 28px;
  border: 1px solid var(--z200);
  border-left: 3px solid var(--z900);
  border-radius: 10px;
  background: #fff;
  padding: 16px 20px;
}

.series-nav__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.series-nav__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--z900);
}

.series-nav__count {
  font-size: 12.5px;
  color: var(--z500);
}

.series-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.series-nav__step {
  border: 1px solid var(--z200);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--z600);
  text-decoration: none;
}

.series-nav__step:hover {
  border-color: var(--z400);
  color: var(--z900);
}

/* ---------- 챕터 목록 ---------- */

.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: none;
}

.chapter__link {
  display: flex;
  gap: 18px;
  border: 1px solid var(--z200);
  border-radius: 12px;
  background: #fff;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.chapter__link:hover {
  border-color: var(--z400);
  transform: translateY(-1px);
}

.chapter__no {
  flex: none;
  display: flex;
  height: 34px;
  width: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--z900);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.chapter__body {
  display: block;
}

.chapter__title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--z900);
  letter-spacing: -0.01em;
}

.chapter__why {
  display: block;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--z600);
}

.chapter__meta {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--z400);
}
