/* AI 도구 구독 페이지 — 무료 / 구독 두 카드 비교형 */
.sp-page { background: #fff; color: #111; }
.sp-main.cc-shell { width: min(1000px, calc(100% - 48px)); padding: 56px 0 96px; }
.sp-head { display: grid; justify-items: center; gap: 0; margin: 0 0 48px; text-align: center; }
.sp-badge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: #f5f5f3; color: #222; font-size: 13px; font-weight: 700; }
.sp-badge svg { width: 14px; height: 14px; fill: #111; }
.sp-head h1 { margin: 20px 0 0; color: #111; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.15; letter-spacing: -.015em; }
.sp-head p { margin: 20px 0 0; color: #777; font-size: 17px; line-height: 1.7; word-break: keep-all; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: 860px; margin-inline: auto; }
.sp-card { display: flex; flex-direction: column; padding: 36px 36px 32px; border-radius: 28px; background: transparent; border: 1px solid #e4e4e1; }
.sp-card-free { background: #f9f9f9; border-color: transparent; }
.sp-card-premium { background: transparent; border-color: #111; }
.sp-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; color: #222; font-size: 12.5px; font-weight: 700; }
.sp-tag-dark { background: #111; color: #fff; }
.sp-tag svg { width: 13px; height: 13px; fill: currentColor; }
.sp-card h2 { margin: 22px 0 0; color: #111; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sp-price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 0; color: #111; }
.sp-price strong { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.sp-price span { font-size: 18px; font-weight: 700; }
.sp-price em { margin-right: 4px; font-size: 18px; font-style: normal; font-weight: 700; }
.sp-price-pending strong { font-size: 30px; }
.sp-note { margin: 14px 0 0; color: #888; font-size: 13.5px; }
.sp-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.sp-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.sp-list i { position: relative; width: 24px; height: 24px; border-radius: 50%; background: #dff5e6; }
.sp-list i::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 9px; border: solid var(--crm-point, #1db954); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.sp-card-free .sp-list i { background: #fff; }
.sp-card-free .sp-list i::after { border-color: #111; }
.sp-list strong { display: block; color: #111; font-size: 15px; font-weight: 500; line-height: 1.5; }
.sp-list span { display: block; margin-top: 2px; color: #888; font-size: 13.5px; line-height: 1.5; }
.sp-foot-note { margin: auto 0 0; padding-top: 28px; color: #888; font-size: 13px; }
.sp-card-premium .sp-list + .sp-button, .sp-card-premium .sp-list + form { margin-top: auto; }
.sp-card-premium .sp-list { margin-bottom: 44px; }
.sp-card-free .sp-list + .sp-button { margin-top: auto; }
.sp-card-free .sp-list { margin-bottom: 44px; }
.sp-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.sp-button-outline { border-color: #dcdcd8; background: #fff; color: #111; }
.sp-button-outline:hover { border-color: #111; }
.sp-button-dark { background: var(--crm-point, #1db954); color: #fff; }
.sp-button-dark:hover { background: var(--crm-point-d, #17a449); }
.sp-button-disabled { background: #eaeceb; color: #8a8f8c; cursor: not-allowed; }
.sp-button:focus-visible { outline: 3px solid rgba(17, 17, 17, .3); outline-offset: 3px; }
.sp-card form { margin: 0; }
/* 알림 — 카드와 같은 폭·모서리·색 체계 */
.sp-main .cc-notice { max-width: 860px; margin: 0 auto 16px; padding: 16px 22px; border: 0; border-radius: 16px; background: #f5f5f3; color: #222; font-size: 14.5px; font-weight: 500; line-height: 1.55; word-break: keep-all; }
.sp-main .cc-notice-success { background: #e8f8ee; color: #0e6b32; }
.sp-main .cc-notice-error { background: #fdf0ee; color: #b3382b; }

/* 내 구독 — 요금 카드와 같은 폭·둥근 모서리, 그림자 없이 */
.sp-main .cc-current-subscriptions { max-width: 860px; margin: 56px auto 0; padding: 32px 36px 24px; border: 1px solid #e4e4e1; border-radius: 28px; background: #fff; box-shadow: none; }
.sp-main .cc-current-subscriptions h2 { margin: 0 0 14px; color: #111; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sp-main .cc-current-subscriptions table { min-width: 640px; }
.sp-main .cc-current-subscriptions th, .sp-main .cc-current-subscriptions td { padding: 18px 10px; border-top: 1px solid #eeeeeb; color: #222; font-size: 14.5px; vertical-align: middle; }
.sp-main .cc-current-subscriptions th { padding: 12px 10px; border-top: 0; color: #888; font-size: 12.5px; font-weight: 600; }
.sp-main .cc-current-subscriptions td:first-child { font-weight: 600; color: #111; }
.sp-main .cc-current-subscriptions td:last-child { min-width: 190px; }
.sp-main .cc-current-subscriptions .cc-text-button { padding: 8px 16px; border: 1px solid #dcdcd8; border-radius: 10px; background: #fff; color: #111; font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .16s ease; }
.sp-main .cc-current-subscriptions .cc-text-button:hover { border-color: #111; }
.sp-main .cc-current-subscriptions .cc-text-button:focus-visible { outline: 3px solid rgba(17, 17, 17, .3); outline-offset: 3px; }
.sp-main .cc-current-subscriptions .cc-muted { color: #888; font-size: 13px; }
.sp-main .cc-current-subscriptions .cc-refund-note { margin: 8px 0 0 auto; max-width: 240px; color: #888; font-size: 12.5px; }
/* 내 구독 다듬기 — 열 정렬·상태 배지·행 간격 */
.sp-main .cc-current-subscriptions { padding: 32px 36px 12px; }
.sp-main .cc-current-subscriptions h2 { margin-bottom: 20px; }
.sp-main .cc-current-subscriptions .cc-table-wrap { overflow: visible; }
.sp-main .cc-current-subscriptions table { min-width: 0; table-layout: fixed; }
.sp-main .cc-current-subscriptions th, .sp-main .cc-current-subscriptions td { padding: 22px 12px; }
.sp-main .cc-current-subscriptions th:first-child, .sp-main .cc-current-subscriptions td:first-child { padding-left: 0; }
.sp-main .cc-current-subscriptions th:last-child, .sp-main .cc-current-subscriptions td:last-child { padding-right: 0; }
.sp-main .cc-current-subscriptions th { padding-top: 0; padding-bottom: 14px; border-bottom: 1px solid #e4e4e1; }
.sp-main .cc-current-subscriptions tbody tr:first-child td { border-top: 0; }
.sp-main .cc-current-subscriptions th:nth-child(1) { width: 27%; }
.sp-main .cc-current-subscriptions th:nth-child(2) { width: 15%; }
.sp-main .cc-current-subscriptions th:nth-child(3) { width: 17%; }
.sp-main .cc-current-subscriptions th:nth-child(4) { width: 19%; }
.sp-main .cc-current-subscriptions td { font-variant-numeric: tabular-nums; word-break: keep-all; }
.sp-main .cc-current-subscriptions td:last-child { min-width: 0; }
.sp-status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #f5f5f3; color: #555; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sp-status-on { background: #e8f8ee; color: #0e8a3c; }
.sp-status-wait { background: #fff6e5; color: #9a6410; }
.sp-main .cc-current-subscriptions .cc-refund-note { margin: 10px 0 0 auto; max-width: 220px; line-height: 1.6; text-align: right; }
@media (max-width: 760px) {
  .sp-main .cc-notice { padding: 14px 18px; font-size: 13.5px; border-radius: 14px; }
  .sp-main .cc-current-subscriptions { margin-top: 36px; padding: 24px 18px 8px; border-radius: 22px; }
  .sp-main .cc-current-subscriptions table, .sp-main .cc-current-subscriptions tbody, .sp-main .cc-current-subscriptions tr, .sp-main .cc-current-subscriptions td { display: block; width: 100%; }
  .sp-main .cc-current-subscriptions thead { display: none; }
  .sp-main .cc-current-subscriptions tr { padding: 18px 0; border-top: 1px solid #eeeeeb; }
  .sp-main .cc-current-subscriptions tr:first-child { border-top: 0; padding-top: 4px; }
  .sp-main .cc-current-subscriptions td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; text-align: right; }
  .sp-main .cc-current-subscriptions td::before { content: attr(data-label); flex: none; color: #888; font-size: 12.5px; font-weight: 600; text-align: left; }
  .sp-main .cc-current-subscriptions td:first-child { padding-left: 0; }
  .sp-main .cc-current-subscriptions td.sp-sub-action { display: block; padding-top: 12px; text-align: right; }
  .sp-main .cc-current-subscriptions td.sp-sub-action::before { content: none; }
  .sp-main .cc-current-subscriptions .cc-refund-note { max-width: none; }
}
@media (max-width: 760px) {
  .sp-main.cc-shell { width: calc(100% - 32px); padding: 36px 0 64px; }
  .sp-head { margin-bottom: 32px; }
  .sp-head p { font-size: 15px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-card { padding: 28px 22px 24px; border-radius: 24px; }
  .sp-price strong { font-size: 44px; }
}

/* 모바일: 카드를 화면 폭에 맞춰 한 단계 작게 */
@media (max-width: 760px) {
  .sp-head { margin-bottom: 28px; }
  .sp-badge { height: 30px; padding: 0 12px; font-size: 12px; }
  .sp-head h1 { margin-top: 16px; font-size: 32px; }
  .sp-head p { margin-top: 14px; font-size: 14px; line-height: 1.65; }
  .sp-grid { max-width: none; gap: 12px; }
  .sp-card-premium { order: -1; }
  .sp-card { padding: 24px 20px 20px; border-radius: 22px; }
  .sp-tag { height: 28px; padding: 0 11px; font-size: 12px; }
  .sp-card h2 { margin-top: 18px; font-size: 16px; }
  .sp-price { margin-top: 10px; }
  .sp-price strong { font-size: 40px; }
  .sp-price span, .sp-price em { font-size: 16px; }
  .sp-price-pending strong { font-size: 26px; }
  .sp-note { margin-top: 10px; font-size: 12.5px; }
  .sp-list { gap: 12px; margin-top: 20px; }
  .sp-list li { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
  .sp-list i { width: 20px; height: 20px; }
  .sp-list i::after {         left: 7px;
        top: 4px;
        width: 3px;
        height: 7px;}
  .sp-list strong { font-size: 14px; }
  .sp-card-free .sp-list, .sp-card-premium .sp-list { margin-bottom: 28px; }
  .sp-button { height: 48px; font-size: 14px; }
}
