/* ───────────── Hero ───────────── */
.hero {
  padding: clamp(64px, 10vh, 120px) 0 clamp(64px, 10vh, 110px);
  background:
    radial-gradient(900px 460px at 50% -120px, rgba(66, 41, 238, 0.08), transparent 60%),
    linear-gradient(180deg, #f4f6fc 0%, #ffffff 70%);
  border-bottom: 1px solid var(--color-border);
}
.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}
.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 102, 255, 0.08);
  color: var(--color-brand-blue);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
}
.hero__title {
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--color-ink-strong);
  margin-bottom: var(--space-5);
}
.hero__lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.hero__highlights {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--color-text-subtle);
}
.hero__highlights li {
  position: relative;
  padding-left: 22px;
}
.hero__highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--color-brand-blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M16.7 5.3 8 14l-4.7-4.7 1.4-1.4L8 11.2l7.3-7.3z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M16.7 5.3 8 14l-4.7-4.7 1.4-1.4L8 11.2l7.3-7.3z'/></svg>") no-repeat center / contain;
}

/* ───────────── Packages ───────────── */
.packages { padding: var(--space-20) 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.card-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  gap: var(--space-8);
}
.packages__note {
  margin-top: var(--space-10);
  text-align: center;
  font-size: 14px;
  color: var(--color-text-subtle);
}
.packages__note-link {
  color: var(--color-brand-blue);
  font-weight: 600;
  margin-left: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.packages__note-link:hover { border-bottom-color: var(--color-brand-blue); }
.plan-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.plan-card--featured {
  border: 0;
  padding: calc(var(--space-8) + 1px);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-brand) border-box;
  border: 2px solid transparent;
  box-shadow: 0 16px 40px rgba(66, 41, 238, 0.14);
}
.plan-card--featured:hover { box-shadow: 0 22px 56px rgba(66, 41, 238, 0.22); }
.plan-card__ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.plan-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.plan-card__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-ink-strong);
}
.plan-card__tag {
  font-size: 12px;
  color: var(--color-text-subtle);
  background: var(--color-bg-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.plan-card__desc {
  color: var(--color-text-muted);
  font-size: 14.5px;
  margin-bottom: var(--space-6);
  min-height: 60px;
  line-height: 1.6;
}
.plan-card__specs {
  flex: 1;
  margin-bottom: var(--space-6);
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-5);
}
.plan-card__specs li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 6px 0;
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}
.plan-card__specs li strong { color: var(--color-text); font-weight: 600; }
.plan-card__specs li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 14px;
  background: var(--color-brand-blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M16.7 5.3 8 14l-4.7-4.7 1.4-1.4L8 11.2l7.3-7.3z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M16.7 5.3 8 14l-4.7-4.7 1.4-1.4L8 11.2l7.3-7.3z'/></svg>") no-repeat center / contain;
}

/* ───────────── Claw 시리즈 옵션 ───────────── */
.claw {
  padding: var(--space-12) 0 var(--space-20);
}
.claw__wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.claw__header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.claw__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(66, 41, 238, 0.08);
  color: var(--color-brand-blue-mid);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.claw__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink-strong);
  margin-bottom: var(--space-3);
}
.claw__lead {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.claw__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: var(--space-5);
}
.claw__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color .15s, transform .15s;
}
.claw__item:hover {
  border-color: var(--color-brand-blue);
  transform: translateY(-1px);
}
.claw__item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink-strong);
  letter-spacing: -0.01em;
}
.claw__item p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.claw__item--option {
  background: linear-gradient(135deg, #f6f8ff 0%, #f1f5ff 100%);
  border-color: #e6ebfd;
}
.claw__item--option ul {
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.claw__item--option li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.claw__item--option li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--color-brand-blue);
  border-radius: 50%;
}
.claw__item--option strong { color: var(--color-text); font-weight: 600; }
.claw__option-foot {
  margin-top: var(--space-3);
  font-size: 12.5px;
  color: var(--color-text-subtle);
}

/* ───────────── Compare table ───────────── */
.compare {
  padding: var(--space-20) 0;
  background: var(--color-bg-soft);
}
.compare__scroll {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.compare__table thead th {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink-strong);
}
.compare__table thead .compare__row-head {
  text-align: left;
  color: var(--color-text-subtle);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare__table thead .compare__col--featured { color: var(--color-brand-blue); }
.compare__group td {
  background: var(--color-bg-muted);
  text-align: left;
  padding: var(--space-3) var(--space-5);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-border);
}
.compare__table tbody tr:not(.compare__group) th,
.compare__table tbody tr:not(.compare__group) td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid #f1f5f9;
}
.compare__table tbody tr:not(.compare__group):last-child th,
.compare__table tbody tr:not(.compare__group):last-child td {
  border-bottom: none;
}
.compare__table tbody tr:not(.compare__group) th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
  width: 40%;
}
.compare__table tbody tr:not(.compare__group) td {
  text-align: center;
  color: var(--color-text-muted);
}
.compare__table tbody tr:not(.compare__group) td:nth-child(3) {
  background: rgba(0, 102, 255, 0.025);
  color: var(--color-text);
  font-weight: 500;
}
.cell-note {
  display: inline;
  margin-left: 4px;
  font-size: 12px;
  color: var(--color-text-subtle);
  font-weight: 400;
}
.compare__table tbody tr:not(.compare__group) th .cell-note {
  margin-left: 6px;
}

/* ───────────── Billing & credit ───────────── */
.billing {
  padding: var(--space-20) 0;
  background: var(--color-bg-soft);
}
.billing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.billing__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.billing__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink-strong);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.billing__card h3::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  flex: none;
}
.billing__card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.billing__card strong { color: var(--color-text); font-weight: 600; }
.billing__sub {
  font-size: 13px !important;
  color: var(--color-text-subtle) !important;
  margin-top: auto;
}
.billing__formula {
  margin: var(--space-2) 0 !important;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 13px !important;
  color: var(--color-ink-strong) !important;
  line-height: 1.5;
  word-break: keep-all;
}

/* ───────────── FAQ ───────────── */
.faq { padding: var(--space-20) 0; }
.faq__list { max-width: 820px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  user-select: none;
  color: var(--color-ink-strong);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text-subtle);
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform .2s, color .2s;
  flex: none;
}
.faq__item[open] summary::after { content: '−'; color: var(--color-brand-blue); }
.faq__item p {
  padding: 0 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ───────────── Final CTA ───────────── */
.cta-final { padding: var(--space-12) 0 var(--space-20); }
.cta-final__inner {
  background:
    radial-gradient(800px 400px at 80% -50%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #1c1856 0%, #4229ee 50%, #553fee 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 8vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final__inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: #fff;
}
.cta-final__inner p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}
.cta-final__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-final .btn--primary { background: #fff; color: var(--color-ink); }
.cta-final .btn--primary:hover { background: #f5f7ff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.cta-final .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
.cta-final .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ═════════════ Responsive ═════════════ */
@media (max-width: 1023px) {
  .card-grid,
  .card-grid--two {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: 460px;
  }
  .plan-card--featured { order: -1; }
  .plan-card__desc { min-height: 0; }
  .claw__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero__highlights { gap: var(--space-3); flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 320px; }
  .packages, .claw, .compare, .faq { padding: var(--space-16) 0; }
}
