/* 폰꾸쿠폰 — 체리 + 흰 바탕, 반쪽 사진 첫 화면과 계산기 */
:root {
  --cherry: #9e1442;
  --cherry-dark: #74092f;
  --cherry-soft: #f8eef1;
  --ink: #1d1a1c;
  --muted: #55505a;
  --line: #e3dde0;
  --bg: #ffffff;
  --tint: #f5f3f4;
  --radius: 8px;
  --wrap: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "SUIT Variable", SUIT, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cherry); text-underline-offset: 3px; }
a:hover { color: var(--cherry-dark); }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.025em; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
h2 { font-size: clamp(22px, 2.5vw, 29px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: 60px 0; }
.tinted { background: var(--tint); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid var(--cherry); cursor: pointer; white-space: nowrap; }
.btn-main { background: var(--cherry); color: #fff; }
.btn-main:hover { background: var(--cherry-dark); border-color: var(--cherry-dark); color: #fff; }
.btn-line { background: #fff; color: var(--cherry); }
.btn-line:hover { background: var(--cherry-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.kcode { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; color: var(--cherry-dark); letter-spacing: .03em; border-bottom: 2px dashed var(--cherry); padding: 0 2px; }
.kcode-none { font-weight: 700; color: var(--muted); }

/* 머리말 */
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 2px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark rect:first-child { fill: var(--cherry); }
.brand-mark rect:last-child { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.brand-name { font-weight: 900; font-size: 20px; display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 11px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--cherry); border-bottom-color: var(--cherry); }
.main-nav .nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; display: block; }

/* 첫 화면: 왼쪽 사진, 오른쪽 계산기 */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(62svh, 600px); border-bottom: 2px solid var(--line); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding: 44px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { white-space: nowrap; font-size: clamp(26px, 3.4vw, 44px); margin-bottom: .3em; }
.hero-lead { color: var(--muted); font-size: 17px; max-width: 30em; }
.calc { border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; margin-top: 8px; max-width: 460px; background: #fff; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--tint); }
.calc-row label { font-weight: 700; }
.calc-row select, .calc-row input[type=number] { font: inherit; font-weight: 700; font-size: 17px; width: 150px; height: 44px; padding: 0 10px; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.calc-row select:focus, .calc-row input:focus { outline: 3px solid var(--cherry-soft); border-color: var(--cherry); }
.calc-check { justify-content: flex-start; }
.calc-check input { width: 20px; height: 20px; accent-color: var(--cherry); margin: 0; }
.calc-check label { font-weight: 600; }
.calc-out { padding-top: 14px; }
.co-code { margin: 0 0 6px; font-size: 22px; font-weight: 900; font-family: ui-monospace, Consolas, monospace; color: var(--cherry-dark); }
.co-code #co-rate { font-family: "SUIT Variable", SUIT, sans-serif; color: var(--ink); margin-left: 6px; }
.calc-out dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.calc-out dt { font-size: 15px; color: var(--muted); font-weight: 600; }
.calc-out dd { margin: 0; font-weight: 800; font-size: 18px; }
.co-msg { margin: 10px 0 0; font-size: 16px; color: var(--muted); }

/* 혜택 목록 (줄) */
.code-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.code-rows li { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--line); }
.cr-no { font-weight: 900; font-size: 22px; color: var(--cherry); line-height: 1.2; }
.cr-body h3 { margin: 0 0 2px; }
.cr-body h3 a { color: var(--ink); text-decoration: none; }
.cr-body h3 a:hover { color: var(--cherry); text-decoration: underline; }
.cr-rate, .cr-brief { margin: 0; font-size: 16px; }
.cr-brief { color: var(--muted); }

/* 표 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.info-table, .code-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table thead th { text-align: left; font-size: 15px; font-weight: 800; padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.info-table td, .info-table tbody th { padding: 13px 12px; border-bottom: 2px solid var(--tint); text-align: left; vertical-align: top; overflow-wrap: normal; }
.info-table tbody th { font-weight: 700; }
.compare-table strong { color: var(--cherry-dark); }
.spec-table tbody th { width: 8.5em; color: var(--muted); white-space: nowrap; }

/* 단계·체크·질문 */
.steps, .checklist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 2px solid var(--tint); }
.step-no { font-size: 26px; font-weight: 900; color: var(--cherry); line-height: 1.1; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.checklist li { padding: 14px 0; border-bottom: 2px solid var(--tint); }
.checklist h3 { margin: 0 0 4px; font-size: 18px; }
.checklist p { margin: 0; color: var(--muted); }
.faq { border-bottom: 2px solid var(--tint); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 18px; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; margin: 0; color: var(--muted); }
.digest-item { padding: 14px 0; border-bottom: 2px solid var(--tint); }
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.directory li { padding: 16px 0; border-bottom: 2px solid var(--tint); }
.directory a { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); }
.directory a:hover { color: var(--cherry); }
.directory p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.more a { font-weight: 800; }

/* 안쪽 페이지 */
.breadcrumb { font-size: 15px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 24px 0 44px; }
.page-head-in { display: grid; grid-template-columns: 1fr; gap: 36px; }
.page-head.has-photo .page-head-in { grid-template-columns: .9fr 1.1fr; align-items: center; }
.page-head.has-photo .page-head-photo { order: -1; }
.page-lead { font-size: 18px; color: var(--muted); max-width: 38em; }
.page-head-photo, .detail-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.detail-head-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.detail-head.no-photo .detail-head-in { grid-template-columns: 1fr; }
.detail-rate { font-size: 21px; font-weight: 800; }
.page-actions { margin-top: 18px; }
.guide-text { padding-top: 20px; }
.text-block { margin-bottom: 40px; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; }
.plain-list, .num-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li, .num-list li { margin-bottom: .5em; }
.block-go { margin-top: 12px; }
.cta-strip { background: var(--cherry-soft); }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta-strip p { margin: 0; font-weight: 700; font-size: 18px; }
.more-menu ul, .related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.more-menu a { font-weight: 700; }
.related-list { flex-direction: column; }
.related-list span { color: var(--muted); font-size: 15px; margin-left: 6px; }
.back-link { margin-top: 20px; font-weight: 800; }
.static-page h1 { margin-top: 12px; }
.notfound { text-align: center; padding: 100px 0; }

/* 꼬리말 */
.foot { background: var(--ink); color: #dedadc; padding: 52px 0 32px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 28px; margin-bottom: 28px; }
.foot-name { font-weight: 900; font-size: 20px; color: #fff; margin-bottom: 8px; }
.foot-about p:last-child { font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot-title { font-weight: 800; color: #fff; margin: 0 0 4px; font-size: 16px; }
.foot-col .strong { font-weight: 900; }
.foot-note { font-size: 15px; color: #c9c4c7; margin: 0 0 8px; }
.to-top { display: inline-block; margin-top: 12px; font-weight: 700; }

.hero > *, .page-head-in > *, .detail-head-in > *, .foot-grid > *, .code-rows li > * { min-width: 0; }

/* 태블릿 */
@media (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 2px solid var(--line); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 2px solid var(--tint); }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { height: 260px; }
  .hero-body { padding: 28px 20px 36px; }
  .calc { max-width: none; }
  .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* 휴대폰 */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo-sub { display: none; }
  .section { padding: 44px 0; }
  .hero-photo { height: 220px; }
  .hero h1 { font-size: clamp(22px, 7.6vw, 32px); }
  .calc { padding: 14px 14px; }
  .calc-row select, .calc-row input[type=number] { width: 130px; }
  .calc-out dd { font-size: 16px; }
  .code-rows li { grid-template-columns: 1fr; gap: 6px; }
  .code-rows .btn { width: 100%; margin-top: 6px; }
  .directory { grid-template-columns: 1fr; }
  .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .info-table thead { display: none; }
  .info-table, .info-table tbody, .info-table tr { display: block; width: 100%; }
  .info-table tr { padding: 10px 0 12px; border-bottom: 2px solid var(--tint); }
  .info-table tbody th, .info-table td { display: flex; gap: 12px; width: 100%; padding: 4px 0; border: 0; white-space: normal; }
  .info-table tbody th { font-size: 17px; }
  .info-table td[data-label]::before { content: attr(data-label); flex: 0 0 5.4em; font-weight: 700; color: var(--muted); }
  .spec-table tbody tr { display: grid; grid-template-columns: 6em 1fr; }
  .spec-table tbody th { width: auto; font-size: 16px; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; font-weight: 800; color: var(--cherry); }
  .brand-name { font-size: 18px; }
}

.header-cta { white-space: nowrap; }
