/* 요금제 페이지 전용 — 무료 띠 · 실시간 계산기 · 단가표.
   styles.css 는 하루 캐시라 새 레이아웃은 별도 파일로 둔다. */

/* ---------- 무료 띠 ---------- */
.free-band {
  display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 28px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(34,211,238,.13), rgba(99,102,241,.10));
  border: 1px solid rgba(34,211,238,.35);
  transition: border-color .25s, box-shadow .25s;
}
.free-band.is-current { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), var(--glow); }
.free-band .pname { font-size: 15px; font-weight: 700; color: #7fe6f7; }
.free-band .scope { font-size: 13px; color: var(--fg-dim); margin-top: 2px; }
.free-band .price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.free-band .price .won { font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.free-band .price .per { color: var(--fg-muted); font-size: 15px; font-weight: 600; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.checks li { display: flex; gap: 9px; font-size: 14px; color: var(--fg-muted); align-items: flex-start; }
.checks li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--cyan); }

/* ---------- 실시간 계산기 ---------- */
.calc {
  display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--stroke); scroll-margin-top: calc(var(--nav-h) + 16px);
}
.calc-in { padding: 34px; display: flex; flex-direction: column; gap: 24px; }
.calc-out { padding: 34px; background: linear-gradient(180deg, rgba(99,102,241,.14), rgba(34,211,238,.05)); border-left: 1px solid var(--stroke); display: flex; flex-direction: column; }
.calc h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; }
.calc .sub { color: var(--fg-muted); font-size: 15px; margin-top: 6px; }
.calc label, .calc .label { display: block; font-size: 14px; font-weight: 700; color: var(--fg-muted); margin-bottom: 10px; }
.calc label small, .calc .label small { font-weight: 600; color: var(--fg-dim); margin-left: 8px; }

.count-row { display: flex; align-items: center; gap: 10px; }
.count-row button {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--stroke-2); background: var(--surface-2);
  color: var(--fg); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; flex: none;
}
.count-row button:hover { border-color: var(--cyan); }
.count-box { position: relative; flex: 1; }
.count-box input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--stroke-2); background: rgba(0,0,0,.25);
  color: var(--fg); font: inherit; font-size: 22px; font-weight: 800; text-align: center; padding: 0 44px 0 12px;
  -moz-appearance: textfield;
}
.count-box input::-webkit-outer-spin-button, .count-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.count-box input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.2); }
.count-box span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--fg-dim); font-weight: 700; }

.calc input[type="range"] {
  --fill: 0%;
  width: 100%; margin-top: 16px; height: 6px; border-radius: 999px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--cyan) 0 var(--fill), rgba(255,255,255,.12) var(--fill) 100%);
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--indigo);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.calc input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--indigo); }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-dim); margin-top: 8px; }

.seg { display: grid; gap: 8px; }
.seg.m4 { grid-template-columns: repeat(4, 1fr); }
.seg.d4 { grid-template-columns: repeat(4, 1fr); }
.seg button {
  min-height: 46px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--stroke-2); background: var(--surface-2);
  color: var(--fg-muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.25;
}
.seg button small { display: block; color: #7fe6f7; font-size: 12px; font-weight: 700; }
.seg button:hover { border-color: var(--stroke-2); color: var(--fg); }
.seg button[aria-pressed="true"] { border-color: var(--cyan); color: var(--fg); background: rgba(34,211,238,.12); }

.calc-plan { padding-bottom: 18px; border-bottom: 1px solid var(--stroke); }
.calc-plan strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.calc-plan span { color: var(--fg-muted); font-size: 14px; font-weight: 600; }
.calc-rows { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--stroke); }
.calc-rows li { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; color: var(--fg-muted); }
.calc-rows li b { color: var(--fg); font-weight: 700; text-align: right; }
.calc-total { padding-top: 20px; }
.calc-total .label { margin-bottom: 4px; }
.calc-total .amount {
  font-size: clamp(34px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-note { margin: 14px 0 22px; font-size: 14px; color: var(--fg-muted); min-height: 1.5em; }
.calc-out .btn { margin-top: auto; }

/* ---------- 단가표 ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: var(--surface); }
.price-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.price-table caption { caption-side: top; text-align: left; padding: 22px 24px 6px; font-size: 14px; color: var(--fg-dim); }
.price-table th, .price-table td { padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--stroke); font-size: 15px; }
.price-table thead th { font-size: 13px; font-weight: 700; color: var(--fg-muted); background: var(--surface-2); }
.price-table thead th:first-child, .price-table tbody th { text-align: left; padding-left: 24px; }
.price-table tbody th { font-weight: 700; color: var(--fg); white-space: nowrap; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td { font-weight: 700; color: var(--fg); cursor: pointer; transition: background .2s; font-variant-numeric: tabular-nums; }
.price-table td:hover { background: rgba(255,255,255,.05); }
.price-table td small { color: var(--fg-dim); font-weight: 600; font-size: 12px; margin-left: 2px; }
.price-table tr.is-current-row th, .price-table th.is-current-col { color: #7fe6f7; }
.price-table td.is-current { background: rgba(34,211,238,.14); box-shadow: inset 0 0 0 2px var(--cyan); color: #fff; }

.notes { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--fg-dim); }
.notes li::before { content: "·"; margin-right: 8px; color: var(--cyan); font-weight: 800; }
.notes b { color: var(--fg-muted); }

@media (max-width: 940px) {
  .free-band { grid-template-columns: 1fr 1fr; }
  .free-band .cta { grid-column: 1 / -1; }
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--stroke); }
}
@media (max-width: 720px) {
  .free-band { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
  .checks { grid-template-columns: 1fr; }
  .calc-in, .calc-out { padding: 24px 20px; }
  .seg.d4 { grid-template-columns: 1fr 1fr; }
  .price-table caption { padding: 18px 16px 4px; }
}
