:root {
  --bg: #fbf7f1;
  --bg-accent: #fffaf3;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffdf9;
  --line: rgba(146, 123, 101, 0.18);
  --line-strong: rgba(146, 123, 101, 0.28);
  --text: #2c241d;
  --text-muted: #746456;
  --brand: #c56f45;
  --brand-strong: #ae5d36;
  --brand-soft: #f4e5d8;
  --shadow: 0 24px 60px rgba(101, 73, 43, 0.1);
  --shadow-soft: 0 16px 40px rgba(101, 73, 43, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Pretendard Variable",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(232, 189, 140, 0.16), transparent 28%),
    radial-gradient(circle at right 16% top 12%, rgba(214, 156, 102, 0.12), transparent 18%),
    linear-gradient(180deg, #fcf8f2 0%, #f9f3ea 100%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100vw - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  padding: 28px 0 18px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 8px 22px rgba(101, 73, 43, 0.06);
  color: var(--brand-strong);
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 26px;
  align-items: stretch;
  padding: 16px 0 30px;
}

.hero-copy {
  padding: 10px 4px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.76);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 24px 0 18px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-description {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
  letter-spacing: -0.015em;
}

.benefit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.benefit-pill {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 10px 24px rgba(101, 73, 43, 0.06);
}

.benefit-label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.benefit-value {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-aside,
.checkout-card {
  border: 1px solid rgba(151, 126, 103, 0.16);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 251, 246, 0.94) 100%);
  box-shadow: var(--shadow);
}

.hero-aside {
  padding: 28px;
}

.aside-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.aside-title {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 700;
}

.aside-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.price-hero {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.price-hero strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.payment-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 240, 0.72);
}

.payment-card.is-selected {
  border-color: rgba(60, 48, 37, 0.16);
  background: linear-gradient(180deg, #342d27 0%, #29231f 100%);
  color: #fffaf4;
}

.payment-card.is-selected .payment-badge {
  background: rgba(255, 244, 232, 0.14);
  color: #fff7ef;
}

.payment-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.payment-meta,
.payment-note {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: inherit;
  opacity: 0.82;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1e2d5;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.summary-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

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

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

.summary-label {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
}

.summary-value {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.primary-button {
  background: linear-gradient(180deg, #d37c4c 0%, #c66d40 100%);
  color: #fffaf4;
  box-shadow: 0 16px 36px rgba(170, 93, 54, 0.22);
}

.secondary-button {
  background: rgba(255, 251, 246, 0.76);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-button[disabled],
.secondary-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.estimator-section,
.checkout-layout {
  padding: 22px 0 88px;
}

.section-heading {
  margin: 0 0 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.section-description {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.estimator-panel {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.estimator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.estimator-row {
  display: grid;
  grid-template-rows: minmax(92px, auto) auto;
  min-height: 250px;
  padding: 28px 24px 24px;
  border-right: 1px solid var(--line);
}

.estimator-row:last-child {
  border-right: 0;
}

.field-copy h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.field-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.counter {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
}

.counter-button {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.8);
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
}

.counter-button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.counter-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 82px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(214, 167, 92, 0.22);
  background: rgba(255, 247, 237, 0.82);
}

.counter-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.counter-input:focus {
  outline: none;
}

.counter-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
}

.checkout-main,
.checkout-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-card {
  padding: 26px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-plan {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 248, 240, 0.72);
  padding: 20px;
  text-align: left;
}

.checkout-plan.is-selected {
  border-color: rgba(54, 42, 32, 0.16);
  background: linear-gradient(180deg, #342d27 0%, #29231f 100%);
  color: #fff9f1;
}

.checkout-plan.is-selected .muted,
.checkout-plan.is-selected .strikethrough {
  color: rgba(255, 246, 236, 0.72);
}

.form-block {
  display: grid;
  gap: 14px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--text);
  font-size: 17px;
}

.text-input:focus {
  outline: 2px solid rgba(197, 111, 69, 0.14);
  border-color: rgba(197, 111, 69, 0.32);
}

.muted {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 18px;
}

.amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.checkout-summary {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.helper-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(244, 229, 216, 0.64);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.status-card {
  width: min(calc(100vw - 32px), 480px);
  margin: 14vh auto 0;
  padding: 30px 26px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-soft);
}

.status-card h1 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.status-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.status-card p + p {
  margin-top: 14px;
}

.footer-note {
  padding: 0 0 44px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .hero,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

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

  .estimator-row:nth-child(2n) {
    border-right: 0;
  }

  .estimator-row:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 20px 0 12px;
  }

  .hero {
    gap: 18px;
    padding-bottom: 18px;
  }

  .hero-title {
    margin-top: 18px;
  }

  .hero-aside,
  .checkout-card {
    padding: 20px;
    border-radius: 30px;
  }

  .payment-grid,
  .checkout-grid,
  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .estimator-row,
  .estimator-row:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .counter {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
  }

  .counter-button {
    width: 58px;
    height: 58px;
  }

  .counter-input {
    font-size: 38px;
  }

  .counter-unit {
    font-size: 21px;
  }

  .amount,
  .payment-title {
    font-size: 34px;
  }
}

