/* Pricing page: estimator card in the hero, plans (payment links), price table + disclaimer, IDI/FGD, quote form.
   Uses the product page system (product.css) and the shared form (form.css). */
.pr-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.pr-hero .h1 { margin-top: 20px; font-size: clamp(36px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.pr-hero .lead { max-width: 40em; }

/* estimator: compact in height (owner 2026-10-06), as wide as the plan cards and the table below (owner 2026-10-07:
   "아래 카드보다 작아 보인다") */
.pr-hero .calc { width: 100%; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0; padding: 0; }
.calc-in { display: grid; gap: 16px; align-content: start; padding: 20px 24px 22px 22px; }
.calc-out { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px 24px; border-left: 1px solid var(--rule); background: var(--bg-2); }
.calc-out .res { border-top: 0; padding-top: 0; }
.calc-out .pill { margin-top: auto; }
.cin { display: grid; gap: 6px; }
.cin-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cin-top label { font-size: 14.5px; font-weight: 600; }
.cin-top small { font-size: 12.5px; color: var(--ink-3); }
.cin-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; align-items: center; }
.cin-num { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 11px; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; }
.cin-num:focus-within { outline: 2px solid var(--blue-ink); outline-offset: 1px; border-color: transparent; }
.cin-num input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px/1 var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.cin-num input::-webkit-outer-spin-button, .cin-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cin-num span { font-size: 13px; color: var(--ink-3); }
.cin input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.cin input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--navy) 0 var(--p, 50%), var(--bg-3) var(--p, 50%) 100%); }
.cin input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--bg-3); }
.cin input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--navy); }
.cin input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 1px 4px rgba(15,27,51,.18); }
.cin input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.cin input[type="range"]:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 6px; }

.opts { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.opts legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--rule-2); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--bg-2); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.opt b { display: block; font-size: 14.5px; font-weight: 600; }
.opt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.opt em { font-style: normal; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }

.res { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.res div[hidden] { display: none; }
.res div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.res dt { font-size: 14px; color: var(--ink-2); }
.res dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.res .tot { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.res .tot dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.res .tot dd { font-size: clamp(26px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.calc-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.calc-body .pill { justify-content: center; height: 46px; }

/* plans (the current site's plan cards; the payment buttons open the site's checkout page, checkout.html?plan=…) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 24px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.plan.pop { border-color: var(--navy); box-shadow: 0 18px 40px -30px rgba(15,27,51,.35); }
.pop-badge { position: absolute; top: -12px; left: 24px; padding: 6px 10px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; }
.plan h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.plan .price { font-size: clamp(38px, 3.4vw, 52px); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.plan .price small { margin-left: 4px; font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); }
.plan .price small:first-child { margin: 0 4px 0 0; }
.plan.pop .price { color: var(--blue-ink); }
.plan ul { margin: 0; padding: 18px 0 0; list-style: none; display: grid; gap: 11px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.plan li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }
.plan .pill { margin-top: auto; justify-content: center; height: 48px; }

/* price table */
.ptw { margin-top: 40px; overflow-x: auto; }
.pt { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.pt th { font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.pt thead th { padding: 0 0 8px; text-align: center; }
.pt thead th:first-child { text-align: left; }
.pt thead th b { display: block; font: 500 17px/1 var(--mono); color: var(--ink); }
.pt tbody th { padding: 0 8px 0 0; text-align: left; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.pt td { height: 58px; border-radius: 10px; text-align: center; font-size: 15.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg-2); }
/* wide screens: the five price columns sit centred in the section and the row labels hang in the space on their left
   (owner 2026-10-06: 가격표 가운데가 안 맞음). The label column is 136px; the table is cut short by the same amount so
   the columns' block is centred, and moved 4px left so the labels line up with the heading. */
@media (min-width: 1100px) {
  .pt { width: calc(100% - 132px); margin-left: -4px; }
  .pt thead th:first-child { width: 136px; }
}
.notes { margin-top: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* IDI / FGD */
.idi { margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.idi .num-card span { margin: 0 0 12px; }
.idi .num-card b { font-size: clamp(30px, 3.3vw, 52px); font-family: inherit; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.disc { margin-top: 28px; font-size: 13px; color: var(--ink-3); }
.quote-sec { padding-bottom: clamp(100px, 10vw, 150px); }
html { scroll-padding-top: 96px; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .calc-body { grid-template-columns: minmax(0, 1fr); }
  .calc-out { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .calc-in { padding: 20px 16px 22px; }
  .calc-out { padding: 20px 16px 22px; }
  .cin-row { grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; }
  .opt { grid-template-columns: 20px minmax(0, 1fr); }
  .opt em { grid-column: 2; }
  .ptw { margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  .pt { min-width: 640px; }
  .pt td { font-size: 14px; height: 52px; }
  .pt thead th:first-child, .pt tbody th { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 4px 0 0 #fff; }
  .pt thead th:first-child { font-size: 11px; }
}
.chap:not(:has(.lead)) .h2 { grid-column: 2 / -1; }
