/* 첫해와 갱신 시점의 비용을 같은 기준으로 읽는 안내표입니다. */
.view-pricing .price-hero-support {
  grid-column: 1 / -1;
  margin: 0;
  color: #465f7e;
  font-size: 13px;
  line-height: 1.8;
}

.view-pricing .cost-domain-note {
  margin: 18px 0 0;
  color: #4d6078;
  font-size: 13px;
  line-height: 1.85;
}

.cost-domain-note b {
  display: block;
  color: #1d395b;
  font-weight: 650;
}

.view-pricing .pricing-source-choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #7187a2;
  border-radius: 8px;
  background: #213e5f;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.pricing-source-choice:has(input:checked) {
  border-color: #aacaff;
  background: #2a4d78;
}

.pricing-source-choice input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #c1dcff;
}

.pricing-source-choice input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.pricing-source-choice b,
.pricing-source-choice small {
  display: block;
}

.pricing-source-choice b {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.pricing-source-choice small {
  margin-top: 6px;
  color: #d1e1f5;
  font-size: 13px;
  line-height: 1.75;
}

.view-pricing [data-pricing-source-row][hidden],
.view-pricing [data-pricing-policy][hidden] {
  display: none;
}

.pricing-first-year dd small {
  display: block;
  color: #cadcf1;
  font-size: 13px;
  text-align: right;
}

.view-pricing .pricing-first-year .pricing-example-note {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.8;
}

.view-pricing .pricing-first-year > p:not(.pricing-example-note) {
  margin: 10px 0;
}

.pricing-lifecycle {
  position: relative;
  margin-top: 16px;
  padding-block: clamp(56px, 6vw, 88px);
  overflow: hidden;
  color: #20364e;
  background: #f6f3ec;
}

.pricing-lifecycle::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), #b1a08114 1px);
  background-size: 100px 100%;
  content: '';
  pointer-events: none;
}

.pricing-lifecycle > .section-shell {
  position: relative;
}

.pricing-lifecycle-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 42px;
}

.pricing-lifecycle-heading .eyebrow {
  margin-bottom: 15px;
  color: #147b70;
  font-size: 13px;
}

.pricing-lifecycle-heading h2 {
  color: #20364e;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.05em;
}

.pricing-lifecycle-heading > p {
  color: #56676d;
  font-size: 14px;
  line-height: 1.9;
}

.pricing-lifecycle-documents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
}

.pricing-invoice {
  padding: clamp(22px, 2.8vw, 38px);
  border: 1px solid #ccdae8;
  border-radius: 4px;
  color: #18314e;
  background: #fff;
  box-shadow: 0 15px 30px #00000015;
}

.pricing-invoice--first {
  transform: rotate(-1deg);
}

.pricing-invoice--renewal {
  transform: rotate(1deg);
  background: #edf8f3;
}

.pricing-invoice header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 23px;
  border-bottom: 1px solid #bacbde;
}

.pricing-invoice header > span {
  color: #40618b;
  font-size: 13px;
}

.pricing-invoice header b {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.pricing-invoice dl {
  display: grid;
  gap: 18px;
  min-height: 116px;
  margin: 25px 0 16px;
  align-content: start;
}

.pricing-invoice dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  line-height: 1.7;
}

.pricing-invoice dt {
  color: #4a607b;
}

.pricing-invoice dd {
  flex-shrink: 0;
  margin: 0;
  font-weight: 600;
}

.pricing-invoice-once dd {
  color: #176b5f;
}

.pricing-invoice-once dd span {
  margin-left: 5px;
}

.pricing-invoice-tax {
  display: block;
  color: #5b7089;
  font-size: 13px;
  line-height: 1.8;
}

.pricing-invoice-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid #bdcdde;
}

.pricing-invoice-total span {
  color: #435c7b;
  font-size: 13px;
}

.pricing-invoice-total strong {
  color: #173e77;
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.pricing-invoice > p {
  margin: 23px 0 0;
  color: #4f647e;
  font-size: 13px;
  line-height: 1.85;
}

.pricing-lifecycle-bridge {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
}

.pricing-lifecycle-bridge svg {
  width: 100%;
  height: 62px;
  stroke: #238c7c;
  stroke-width: 1.5;
  stroke-dasharray: 200;
}

.pricing-lifecycle-bridge span {
  max-width: 70px;
  color: #426f69;
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

.pricing-lifecycle-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 35px;
  margin-top: 43px;
}

.pricing-live-site {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.pricing-live-site-image {
  display: block;
  flex: 0 0 122px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #c8d9d3;
  border-radius: 4px;
  transform: perspective(600px) rotateY(8deg);
  transition: transform 250ms ease;
}

.pricing-live-site:hover .pricing-live-site-image {
  transform: perspective(600px) rotateY(0deg);
}

.pricing-live-site img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.pricing-live-site small {
  display: block;
  margin-bottom: 9px;
  color: #4f746f;
  font-size: 13px;
}

.pricing-live-site b {
  color: #20364e;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.7;
}

.pricing-live-site i {
  margin-left: auto;
  color: #217f72;
  font-size: 20px;
  font-style: normal;
}

.pricing-lifecycle-footer > p {
  margin: 0;
  color: #53696c;
  font-size: 13px;
  line-height: 1.9;
}

.pricing-lifecycle-footer > p a {
  display: block;
  margin-top: 9px;
  color: #186d63;
  font-weight: 600;
}

.pricing-lifecycle.is-in-view .pricing-invoice--first {
  animation: pricing-invoice-first 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pricing-lifecycle.is-in-view .pricing-invoice--renewal {
  animation: pricing-invoice-renewal 700ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pricing-lifecycle.is-in-view .pricing-lifecycle-bridge svg {
  animation: pricing-connection 850ms 350ms ease both;
}

@keyframes pricing-invoice-first {
  from {
    transform: translateY(24px) rotate(-2deg);
  }
  to {
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes pricing-invoice-renewal {
  from {
    transform: translateY(24px) rotate(2deg);
  }
  to {
    transform: translateY(0) rotate(1deg);
  }
}

@keyframes pricing-connection {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1000px) {
  .pricing-lifecycle-heading {
    display: block;
  }

  .pricing-lifecycle-heading > p {
    margin-top: 18px;
  }

  .pricing-lifecycle-documents {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  }

  .pricing-invoice dl > div {
    flex-wrap: wrap;
    gap: 3px 15px;
  }

  .pricing-invoice dd {
    margin-left: auto;
  }

  .pricing-lifecycle-footer {
    gap: 22px;
  }
}

@media (max-width: 700px) {
  .pricing-lifecycle-documents,
  .pricing-lifecycle-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-lifecycle-heading {
    margin-bottom: 30px;
  }

  .pricing-invoice {
    margin-inline: 3px;
    padding: 25px 21px;
  }

  .pricing-invoice dl {
    min-height: 0;
    gap: 15px;
  }

  .pricing-invoice-total strong {
    font-size: 33px;
  }

  .pricing-lifecycle-bridge {
    display: flex;
    gap: 9px;
    justify-content: center;
    align-items: center;
    height: 90px;
  }

  .pricing-lifecycle-bridge svg {
    width: 45px;
    height: 45px;
    transform: rotate(90deg);
  }

  .pricing-lifecycle-bridge span {
    max-width: none;
  }

  .pricing-lifecycle-footer {
    gap: 25px;
    margin-top: 35px;
  }

  .pricing-live-site-image {
    flex-basis: 100px;
    height: 72px;
  }

  .pricing-live-site b {
    font-size: 14px;
  }

  .pricing-lifecycle-footer > p br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-lifecycle.is-in-view .pricing-invoice,
  .pricing-lifecycle.is-in-view .pricing-lifecycle-bridge svg {
    animation: none;
  }

  .pricing-live-site-image,
  .view-pricing .pricing-source-choice {
    transition: none;
  }
}

.pricing-lifecycle.is-motion-static .pricing-invoice,
.pricing-lifecycle.is-motion-static .pricing-lifecycle-bridge svg {
  animation: none;
}
