@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* ==========================================================================
   디자인 토큰
   ========================================================================== */
:root {
  /* 색 — 배경 */
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --bg-subtle: #f6f8fd;
  --bg-field: #f7f9fd;
  --bg-scene: #eef1fd;

  /* 색 — 테두리 */
  --line: #e7eaf3;
  --line-soft: #eef0f7;
  --line-field: #e8ecf6;

  /* 색 — 텍스트 */
  --text-strong: #1c2a5e;
  --text-body: #5c6884;
  --text-label: #7b86a3;

  /* 색 — 강조 */
  --primary: #23347e;
  --primary-dark: #1b2a6b;
  --badge-bg: #e9edfb;
  --badge-text: #34479c;
  --ok-bg: #e6f6ed;
  --ok-text: #17794a;
  --ok-dot: #22a463;

  /* 색 — 일러스트 */
  --scene-body: #7d8ddb;
  --scene-cushion: #9aa9e6;
  --scene-leg: #4a5aa8;
  --scene-prop: #d5dbee;
  --scene-accent: #8fa2e8;
  --scene-rug: #dde3f8;

  /* 형태 */
  --r-card: 16px;
  --r-field: 12px;
  --r-button: 10px;
  --r-pill: 999px;

  /* 간격 */
  --pad-card: 28px;
  --gap: 20px;

  /* 그림자 */
  --shadow-card: 0 1px 2px rgba(23, 34, 77, 0.04), 0 8px 24px rgba(23, 34, 77, 0.04);
  --shadow-raise: 0 4px 12px rgba(23, 34, 77, 0.1);

  /* 타이포 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

/* ==========================================================================
   기본
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

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

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

svg {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   레이아웃
   ========================================================================== */
/* 원본 시안의 카드 폭·줄바꿈을 재현하는 값 (콘텐츠 폭 1030px) */
.container {
  width: 100%;
  max-width: 1062px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 좌우 패딩은 .container 값을 유지해야 하므로 위아래만 지정한다 */
.page {
  padding-top: 24px;
  padding-bottom: 40px;
  display: grid;
  gap: var(--gap);
}

/* 좌 본문 : 우 사이드 = 1.18 : 1 (원본 비율) */
.split {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 22px;
  align-items: start;
}

/* 히어로는 원본처럼 좌우 카드 높이를 맞춘다.
   좌측 콘텐츠(제목+칩)가 일러스트보다 짧으므로 세로 중앙에 두어 여백을 대칭으로 만든다. */
.split--hero {
  align-items: stretch;
}

.split--hero > .card:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split--hero .card--scene {
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.stack {
  display: grid;
  gap: 22px;
  align-content: start;
}

/* ==========================================================================
   헤더
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 71px;
  padding: 12px 16px;
}

.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   버튼
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 13px 22px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: #d6dbea;
  background: #fbfcfe;
}

.btn--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  padding: 13px 24px;
}

.btn--primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.btn--block {
  width: 100%;
}

.btn--pay {
  border: 0;
  border-radius: var(--r-button);
  background: linear-gradient(100deg, #2b3f96 0%, #1e2a6b 100%);
  color: #fff;
  font-size: 16px;
  padding: 19px 24px;
}

.btn--pay:hover {
  background: linear-gradient(100deg, #253786 0%, #18225c 100%);
  box-shadow: var(--shadow-raise);
}

.btn--method {
  border-radius: var(--r-button);
  padding: 17px 20px;
  font-size: 14.5px;
}

.btn--method[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--badge-bg);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   카드
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--pad-card);
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.card--scene {
  display: flex;
  padding: 30px;
}

/* 원본처럼 연한 파랑 씬 박스가 카드를 가득 채우고 일러스트는 그 안에서 중앙 정렬된다 */
.scene {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--bg-scene);
  min-height: 300px;
}

.scene svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   배지 · 칩
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--r-pill);
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 15px;
}

.badge--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok-dot);
  flex-shrink: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
}

/* ==========================================================================
   히어로
   ========================================================================== */
/* 원본 시안처럼 "실생활에 필요한 가구를 / 간편하게 안내하고 결제하는 / 페이지"
   3줄로 접히는 크기. 카드 내부 폭의 약 75%를 첫 줄이 차지한다. */
.hero__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.22;
}

.hero__chips {
  margin-top: 26px;
}

/* ==========================================================================
   상품 카드
   ========================================================================== */
.product__title {
  font-size: 19px;
  font-weight: 700;
}

.product__desc {
  margin-top: 12px;
  font-size: 13.5px;
}

.product__price {
  margin-top: 16px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

/* 설명 길이가 달라도 구매 버튼은 카드 하단에 정렬된다 */
.grid-3 > .card {
  display: flex;
  flex-direction: column;
}

.product__buy {
  margin-top: auto;
  padding-top: 18px;
}

/* ==========================================================================
   불릿 목록
   ========================================================================== */
.bullets {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.bullets li {
  position: relative;
  padding-left: 17px;
  font-size: 13.5px;
  line-height: 1.65;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b3bcd2;
}

/* ==========================================================================
   페이지 제목
   ========================================================================== */
.page-head {
  padding: 8px 0 2px;
}

.page-head__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.page-head__desc {
  margin-top: 6px;
  font-size: 14px;
}

/* ==========================================================================
   정보 행 (주문 정보 · 결제 금액)
   ========================================================================== */
.rows {
  display: grid;
  margin-top: 22px;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.row:last-child {
  border-bottom: 0;
}

.row__label {
  color: var(--text-label);
  font-size: 13.5px;
}

.row__value {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.rows--amount {
  margin-top: 18px;
}

.rows--amount .row {
  border-bottom: 0;
  padding: 11px 0;
}

.row--total {
  margin-top: 4px;
  padding-top: 18px !important;
  border-top: 1px solid var(--line-soft);
}

.row--total .row__label {
  color: var(--text-strong);
  font-size: 14.5px;
  font-weight: 700;
}

.row--total .row__value {
  font-size: 17px;
}

/* ==========================================================================
   결제 수단
   ========================================================================== */
.section-title {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
}

/* 배지 바로 아래 오는 첫 섹션 제목은 간격을 좁힌다 */
.section-title--first {
  margin-top: 24px;
}

.methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* 상품 선택 — 3개라 1행 3열 */
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.choices .btn--method {
  padding: 15px 10px;
  font-size: 13.5px;
}

.pay-actions {
  margin-top: 22px;
}

/* ==========================================================================
   상품 상세 이미지
   ========================================================================== */
.card__desc {
  margin-top: 8px;
  font-size: 13.5px;
}

.detail {
  margin: 20px 0 0;
}

/* 원본이 1024px 폭이라 카드 내부 폭(≈974px)에서 확대되지 않는다 */
.detail__image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-field);
  border-radius: var(--r-field);
  background: var(--bg-field);
}

/* ==========================================================================
   사업자 정보
   ========================================================================== */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.biz-item {
  border: 1px solid var(--line-field);
  border-radius: var(--r-field);
  background: var(--bg-field);
  padding: 16px 18px;
}

.biz-item__label {
  display: block;
  color: var(--text-label);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.biz-item__value {
  display: block;
  margin-top: 7px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
}

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--scene {
    order: -1;
  }

  /* 1열로 접히면 카드가 넓어지므로 시안 줄바꿈을 해제한다 */
  .lb {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --pad-card: 22px;
    --gap: 14px;
  }

  .split,
  .stack {
    gap: 14px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .biz-grid,
  .methods,
  .choices {
    grid-template-columns: 1fr;
  }

  .card--scene {
    padding: 18px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 13.5px;
  }

  .chip {
    padding: 10px 15px;
    font-size: 13px;
  }

  .hero__title {
    font-size: 30px;
  }

  .page-head__title {
    font-size: 24px;
  }
}
