/* 키움 암보험 /b — 생애 막대와 붙어 다니는 신청 카드 */
@font-face { font-family: "Paperlogy"; src: url("/b/fonts/paperlogy-800.woff2?v=3") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/b/fonts/paperlogy-600.woff2?v=3") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy-deep: #0b2b5b;
  --navy: #003c79;
  --ink: #13213f;
  --text: #1f2738;
  --text-2: #4a5468;
  --text-3: #626b7d;
  --cream: #f6f3ec;
  --tint: rgba(19, 33, 63, .055);
  --tint-2: rgba(19, 33, 63, .1);
  --coral: #d93b2e;
  --coral-press: #bf3226;
  --coral-soft: #fdebe6;
  --peach: #ffb59e;
  --sky: #bfd0ea;
  --display: "Paperlogy", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 var(--body); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #2f6feb; outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* 히어로 */
.page { max-width: 1260px; margin: 0 auto; }
.hero { padding: 28px var(--gutter) 68px; background: var(--navy-deep); color: #fff; border-image: conic-gradient(var(--navy-deep) 0 0) fill 0 // 0 100vmax; }
.hero-ask { margin-bottom: 6px; color: var(--peach); font: 600 15px/1.4 var(--display); }
.hero-title { font: 800 clamp(31px, 9.2vw, 66px)/1.15 var(--display); letter-spacing: -.02em; }
.hero-title .ln { display: block; }
.hero-title em { font-style: normal; color: var(--peach); }
.hero-fine { margin-top: 8px; color: var(--sky); font-size: 12px; line-height: 1.5; }

.life { --split: .4; margin-top: 14px; }
.life-tags { position: relative; height: 26px; }
.life-tag { position: absolute; bottom: 0; padding: 6px 10px; border-radius: 999px; font: 700 13px/1 var(--body); white-space: nowrap; }
.life-tag-pay { left: 0; background: var(--coral); color: #fff; }
.life-tag-cover { right: 0; background: rgba(191, 208, 234, .18); color: #fff; }
.life-bar { position: relative; height: 12px; margin-top: 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.life-pay, .life-cover { position: absolute; top: 0; bottom: 0; transform-origin: left center; }
.life-pay { left: 0; width: calc(var(--split) * 100%); border-radius: 999px 0 0 999px; background: linear-gradient(90deg, #ff7a62, var(--peach)); }
.life-cover { left: calc(var(--split) * 100%); right: 0; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #9fbbe6, #e4edfa); }
.life-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--navy-deep); }
.life-dot-a { left: 0; margin-left: 0; }
.life-dot-b { left: calc(var(--split) * 100%); }
.life-dot-c { left: 100%; margin-left: -14px; }
.life-ages { position: relative; height: 20px; margin-top: 8px; color: var(--sky); font: 600 13px/20px var(--display); }
.life-age { position: absolute; top: 0; white-space: nowrap; }
.life-age-a { left: 0; }
.life-age-b { left: calc(var(--split) * 100%); translate: -50% 0; color: #fff; }
.life-age-c { right: 0; color: #fff; }

/* 첫 화면에서 한 번: 납입 20년이 먼저 차고 보장이 100세까지 뻗는다 */
@media (prefers-reduced-motion: no-preference) {
  .life-pay { animation: grow .7s .25s var(--ease) both; }
  .life-cover { animation: grow .9s .85s var(--ease) both; }
  .life-dot-b, .life-age-b, .life-tag-pay { animation: rise .4s .75s var(--ease) both; }
  .life-dot-c, .life-age-c, .life-tag-cover { animation: rise .4s 1.55s var(--ease) both; }
  .life.is-replay .life-pay { animation: grow .55s var(--ease) both; }
  .life.is-replay .life-cover { animation: grow .7s .45s var(--ease) both; }
  .life.is-replay .life-dot-b, .life.is-replay .life-age-b { animation: rise .35s .4s var(--ease) both; }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }

/* 신청 카드 */
.apply-slot { position: relative; z-index: 5; margin-top: -56px; padding: 0 16px; background: linear-gradient(transparent 56px, var(--cream) 56px); }
.apply-slot.is-holding { min-height: var(--hold); }
.apply { max-width: 560px; margin: 0 auto; padding: 18px 18px 16px; border-radius: 24px; background: #fff; box-shadow: 0 22px 48px -22px rgba(11, 43, 91, .55), 0 2px 8px rgba(11, 43, 91, .08); }
.apply.is-called { animation: called 1s var(--ease); }
@keyframes called { 0% { box-shadow: 0 0 0 0 rgba(217, 59, 46, .5), 0 22px 48px -22px rgba(11, 43, 91, .55); } 100% { box-shadow: 0 0 0 16px rgba(217, 59, 46, 0), 0 22px 48px -22px rgba(11, 43, 91, .55); } }
.apply-title { margin-bottom: 12px; color: var(--ink); font: 800 20px/1.38 var(--display); letter-spacing: -.01em; }
.apply-title:focus { outline: none; }
.apply-note { margin-top: 10px; color: var(--text-3); font-size: 13px; line-height: 1.5; text-align: center; }
.apply-note b { color: var(--navy); font-weight: 700; }

.row { display: flex; gap: 8px; }
.row-who .fld { flex: 1 1 0; }
.row-who .fld-phone { flex: 1.45 1 0; }
.row + .row, .mine + .row { margin-top: 8px; }
.fld { position: relative; flex: 1 1 0; min-width: 0; display: block; padding: 8px 14px 5px; border-radius: 14px; background: var(--tint); cursor: text; transition: background-color .2s, box-shadow .2s; }
.fld-l { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; line-height: 1.35; }
.fld input { display: block; width: 100%; min-height: 31px; padding: 1px 0 3px; border: 0; background: transparent; color: var(--ink); font: 600 18px/1.4 var(--body); outline: none; -webkit-appearance: none; appearance: none; }
.fld input::placeholder { color: #9aa1af; font-weight: 500; }
.fld:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.fld.is-bad { background: #fff6f4; box-shadow: inset 0 0 0 2px var(--coral); }
.fld.is-ok .fld-l::after { content: ""; display: inline-block; width: 5px; height: 9px; margin: 0 0 2px 7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); vertical-align: middle; }

.sex { display: flex; flex: 0 0 auto; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 14px; }
.sex.is-bad { box-shadow: 0 0 0 2px var(--coral); }
.sex-o { position: relative; display: block; }
.sex-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sex-o span { display: grid; place-items: center; min-width: 62px; height: 100%; min-height: 58px; padding: 0 12px; border-radius: 14px; background: var(--tint); color: var(--text-2); font-size: 16px; font-weight: 700; transition: background-color .2s, color .2s; }
.sex-o input:checked + span { background: var(--navy); color: #fff; }
.sex-o input:focus-visible + span { outline: 3px solid #2f6feb; outline-offset: 2px; }

/* 내 나이로 본 납입 끝 */
.mine { margin-top: 8px; padding: 9px 14px; border-radius: 14px; background: var(--coral-soft); }
.mine-l { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.mine-off { display: none; }
.mine.is-over .mine-on { display: none; }
.mine.is-over .mine-off { display: inline; }
.slot { display: inline-block; min-width: 2.1ch; padding: 0 2px; color: var(--coral); font: 800 19px/1 var(--display); text-align: center; }
.mine.is-idle .slot { border-radius: 6px; background: rgba(217, 59, 46, .12); color: rgba(217, 59, 46, .55); }
@media (prefers-reduced-motion: no-preference) {
  .mine.is-idle .slot { animation: wait 1.8s ease-in-out infinite; }
  .slot.is-pop { animation: pop .5s var(--ease) both; }
}
@keyframes wait { 50% { background: rgba(217, 59, 46, .22); } }
@keyframes pop { from { opacity: 0; transform: translateY(60%); } }

/* 버튼 */
.go { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 12px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--coral); color: #fff; font: 800 18px/1.2 var(--display); cursor: pointer; box-shadow: 0 12px 24px -12px rgba(217, 59, 46, .8); -webkit-tap-highlight-color: transparent; }
.go:active { background: var(--coral-press); transform: translateY(1px); }
.go:disabled { opacity: .7; cursor: progress; }
.go-arrow { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .go.is-live .go-arrow { animation: nudge 5s ease-in-out infinite; }
  .go.is-live::after { animation: halo 5s ease-out infinite; }
}
@keyframes nudge { 0%, 78%, 100% { transform: none; } 84% { transform: translateX(5px); } 90% { transform: none; } 95% { transform: translateX(3px); } }
@keyframes halo { 0%, 76% { box-shadow: 0 0 0 0 rgba(217, 59, 46, 0); } 80% { box-shadow: 0 0 0 0 rgba(217, 59, 46, .5); } 100% { box-shadow: 0 0 0 14px rgba(217, 59, 46, 0); } }

.err { color: var(--coral-press); font-size: 14px; font-weight: 600; line-height: 1.45; }
.err:not(:empty) { margin-top: 10px; }

/* 확인·동의 단계 */
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 2px -6px; padding: 0 8px 0 4px; border: 0; background: none; color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#step-2 .apply-title { margin-bottom: 6px; }
.confirm-phone { color: var(--navy); font: 800 28px/1.25 var(--display); letter-spacing: .01em; }
.confirm-who { margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.agree { margin-top: 16px; }
.agree label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.agree input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.agree-all { padding: 4px 14px; border-radius: 14px; background: var(--tint); font-size: 16px; font-weight: 700; color: var(--ink); }
.agree-all small { margin-left: 2px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.agree-i { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 14px; }
.agree-i label { flex: 1; min-width: 0; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.agree-i.is-bad .agree-t { color: var(--coral-press); }
.box { position: relative; flex: none; width: 24px; height: 24px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px #b8bfcc; transition: background-color .15s, box-shadow .15s; }
.box::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); opacity: 0; }
input:checked + .box { background: var(--navy); box-shadow: none; }
input:checked + .box::after { opacity: 1; }
input:focus-visible + .box { outline: 3px solid #2f6feb; outline-offset: 2px; }
.see { flex: none; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--text-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 접수 완료 */
.done { padding: 14px 4px 6px; text-align: center; }
.done:focus { outline: none; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); }
.done-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done-title { color: var(--ink); font: 800 22px/1.35 var(--display); }
.done-text { margin-top: 8px; color: var(--text); font-size: 16px; line-height: 1.6; }
.done-tip { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--cream); color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* 구간 공통 */
.sec { padding: 52px var(--gutter); background: var(--bg, #fff); border-image: conic-gradient(var(--bg, #fff) 0 0) fill 0 // 0 100vmax; }
.sec-cmp, .sec-after { --bg: var(--cream); }
.sec-cmp { padding-top: 40px; }
.sec-ask { margin-bottom: 8px; color: var(--coral); font: 800 15px/1.4 var(--display); }
.sec-title { color: var(--ink); font: 800 clamp(24px, 6.6vw, 38px)/1.34 var(--display); letter-spacing: -.015em; }
.sec-lead { margin-top: 12px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.sec-note { margin-top: 16px; color: var(--text-3); font-size: 13px; line-height: 1.6; }
.ask { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--coral); font: 800 17px/1.3 var(--display); cursor: pointer; }
.ask svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 보험료 흐름 비교 */
.cmp { margin-top: 24px; padding: 20px 16px 16px; border-radius: 20px; background: #fff; }
.cmp-row + .cmp-row { margin-top: 18px; }
.cmp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 8px; }
.cmp-name { color: var(--ink); font: 800 16px/1.35 var(--display); }
.cmp-row-c .cmp-name { color: var(--coral); }
.cmp-desc { color: var(--text-2); font-size: 14px; line-height: 1.4; }
.cmp-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 92px; }
.cmp-bars i { display: block; height: var(--h); border-radius: 8px 8px 3px 3px; background: #bcc3cf; transform-origin: bottom; }
.cmp-bars i[data-h="1"] { --h: 22%; }
.cmp-bars i[data-h="2"] { --h: 34%; }
.cmp-bars i[data-h="3"] { --h: 52%; }
.cmp-bars i[data-h="4"] { --h: 74%; }
.cmp-bars i[data-h="5"] { --h: 100%; }
.cmp-bars i[data-h="c"] { --h: 42%; background: var(--coral); }
.cmp-free { grid-column: 3 / span 3; align-self: end; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 12px; border-radius: 10px; background: var(--coral-soft); color: var(--text-2); font-size: 13px; line-height: 1.35; text-align: center; transform-origin: left center; }
.cmp-free b { color: var(--coral-press); font-size: 14px; }
.cmp-axis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; color: var(--text-3); font-size: 12px; text-align: center; }
.cmp-note { margin-top: 12px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .cmp:not(.is-on) .cmp-bars i { transform: scaleY(0); }
  .cmp:not(.is-on) .cmp-free { opacity: 0; transform: scaleX(.6); }
}
.cmp-bars i, .cmp-free { transition: transform .55s var(--ease), opacity .4s; }
.cmp-row-g i:nth-child(2) { transition-delay: .08s; }
.cmp-row-g i:nth-child(3) { transition-delay: .16s; }
.cmp-row-g i:nth-child(4) { transition-delay: .24s; }
.cmp-row-g i:nth-child(5) { transition-delay: .32s; }
.cmp-row-c i:nth-child(1) { transition-delay: .45s; }
.cmp-row-c i:nth-child(2) { transition-delay: .53s; }
.cmp-row-c .cmp-free { transition-delay: .8s; }

/* 진단부터 완치 후까지 */
.way { position: relative; --p: 1; margin: 26px 0 0; padding: 0; list-style: none; }
.way::before, .way::after { content: ""; position: absolute; left: 10px; top: 10px; width: 3px; border-radius: 3px; }
.way::before { bottom: 30px; background: var(--tint-2); }
.way::after { height: calc((100% - 40px) * var(--p)); background: var(--coral); }
.stop { position: relative; padding: 0 0 26px 38px; }
.stop:last-child { padding-bottom: 4px; }
.stop::before { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(217, 59, 46, .14); transition: background-color .3s, box-shadow .3s; }
.stop-when { color: var(--coral); font: 800 14px/1.5 var(--display); }
.stop-q { margin-top: 2px; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.stop-title { margin-top: 2px; color: var(--ink); font: 800 22px/1.35 var(--display); }
.stop-text { margin-top: 4px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.stop-plus { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.stop-plus b { color: var(--ink); font-weight: 700; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .way.is-armed { --p: 0; }
  .way.is-armed .stop:not(.is-on)::before { background: #fff; box-shadow: inset 0 0 0 3px #c9ced8; }
  .way.is-armed .stop:not(.is-on) > * { opacity: .45; }
  .stop > * { transition: opacity .35s; }
}

/* 신청 후 흐름·질문 */
.flow { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.flow li { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; }
.flow b { color: var(--navy); font: 800 16px/1.55 var(--display); }
.flow span { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.faq { margin-top: 28px; }
.faq details { margin-top: 8px; border-radius: 14px; background: #fff; }
.faq summary { position: relative; padding: 16px 48px 16px 18px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq details p { padding: 0 18px 18px; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* 마무리 */
.closing { padding: 60px var(--gutter) 68px; background: var(--navy-deep); color: #fff; text-align: center; border-image: conic-gradient(var(--navy-deep) 0 0) fill 0 // 0 100vmax; }
.closing-ask { color: var(--peach); font: 800 16px/1.4 var(--display); }
.closing-title { margin: 10px 0 22px; font: 800 clamp(26px, 7.4vw, 42px)/1.32 var(--display); letter-spacing: -.015em; }
.go-closing { max-width: 420px; margin: 0 auto; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }

/* 바닥 */
.foot { padding: 36px var(--gutter) 110px; background: #f2f3f6; color: var(--text-3); font-size: 12px; line-height: 1.7; }
.foot-in { max-width: 1164px; margin: 0 auto; }
.foot-title { margin-bottom: 6px; color: var(--text-2); font-size: 13px; font-weight: 700; }
.foot p + p { margin-top: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 10px; }
.foot-links button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 아래 고정 신청 막대 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -10px 30px -16px rgba(11, 43, 91, .45); transform: translateY(115%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; }
.dock.is-on { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
.go-dock { max-width: 560px; margin: 0 auto; min-height: 54px; }
.dock-step { padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font: 700 13px/1 var(--body); }

/* 그 자리에서 여는 신청 창 */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: #fff; color: var(--text); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(9, 20, 45, .55); }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; padding: 16px 8px 2px 20px; }
.sheet-head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d5d9e1; }
.sheet-title { color: var(--text-2); font-size: 14px; font-weight: 700; }
.x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.x svg { width: 22px; height: 22px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.sheet-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet .apply { padding: 2px 2px 6px; border-radius: 0; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up .3s var(--ease); }
  .sheet[open]::backdrop { animation: fade .3s; }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
html.is-sheet { overflow: hidden; }

/* 동의 전문 */
.terms { width: min(560px, calc(100% - 24px)); max-height: 86vh; max-height: 86dvh; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--text); }
.terms[open] { display: flex; flex-direction: column; }
.terms::backdrop { background: rgba(9, 20, 45, .55); }
.terms-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 8px 6px 20px; }
.terms-head h2 { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.4; }
.terms-body { flex: 1 1 auto; overflow: auto; padding: 4px 20px 6px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.terms-body p + p, .terms-body ul + p, .terms-body p + ul { margin-top: 10px; }
.terms-body ul { margin: 8px 0 0; padding-left: 18px; }
.terms-body a { color: var(--navy); }
.terms .go { width: auto; margin: 10px 20px 20px; min-height: 52px; }
.noscript { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 14px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; }

/* 좁은 폰 */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .row-birth, .row-who { flex-wrap: wrap; }
  .row-who .fld { flex-basis: 100%; }
  .sex { flex: 1 1 100%; }
  .sex-o { flex: 1; }
  .apply { padding-inline: 14px; }
  .life-tag { padding: 5px 8px; font-size: 12px; }
}

/* 태블릿 */
@media (min-width: 600px) {
  :root { --gutter: max(32px, calc((100% - 640px) / 2)); }
  .hero { padding-top: 40px; padding-bottom: 84px; }
  .hero-ask { font-size: 18px; }
  .life-tag { font-size: 14px; }
  .life-ages { font-size: 14px; }
  .hero-fine { font-size: 13px; }
  .apply-slot { margin-top: -60px; background: linear-gradient(transparent 60px, var(--cream) 60px); }
  .apply { padding: 26px 26px 22px; }
  .apply-title { font-size: 22px; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .sec-cmp { padding-top: 56px; }
  .cmp { padding: 26px 24px 20px; }
  .cmp-bars { height: 120px; gap: 12px; }
  .cmp-axis { gap: 12px; font-size: 13px; }
  .flow li { grid-template-columns: 110px 1fr; gap: 12px; padding: 18px 20px; }
  .foot { padding-bottom: 120px; font-size: 13px; }
  .foot-links button { font-size: 13px; }
}

/* PC: 신청 카드가 내내 옆에 붙어 있다 */
@media (min-width: 1000px) {
  :root { --gutter: 0px; }
  .page { display: grid; grid-template-columns: minmax(0, 1fr) 372px; column-gap: 48px; padding: 0 32px; }
  .page > section { grid-column: 1; }
  /* The card may keep sticking over the top of the footer, so it never leaves the screen at the very bottom. */
  .apply-slot { grid-column: 2; grid-row: 1 / span 5; margin: 0 0 -300px; padding: 48px 0 32px; background: none; }
  .apply-slot.is-holding { min-height: 0; }
  .apply { position: sticky; top: 24px; padding: 28px 28px 24px; }
  .hero { padding: 72px 0 84px; }
  .hero-ask { margin-bottom: 14px; font-size: 21px; }
  .life { margin-top: 36px; max-width: 640px; }
  .life-tags { height: 30px; }
  .life-tag { padding: 7px 12px; font-size: 15px; }
  .life-bar { height: 14px; }
  .life-ages { height: 22px; margin-top: 10px; font-size: 15px; line-height: 22px; }
  .hero-fine { margin-top: 16px; }
  .sec { padding: 96px 0; }
  .sec-cmp { padding-top: 96px; }
  .sec-title { font-size: 38px; }
  .sec-lead { font-size: 17px; }
  .cmp { max-width: 640px; }
  .way { max-width: 640px; }
  .stop { padding-bottom: 32px; }
  .flow { max-width: 640px; }
  .faq { max-width: 640px; }
  .closing { padding: 88px 0 96px; text-align: left; }
  .go-closing { margin: 0; }
  .go-closing.is-live::after, .go-closing.is-live .go-arrow { animation: none; }
  .foot { padding: 44px 32px 56px; }
  .foot-in { max-width: 1196px; padding-right: 420px; }
  .dock { display: none; }
}
@media (min-width: 1280px) {
  .page { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 72px; padding: 0 48px; }
  .foot { padding-left: 48px; padding-right: 48px; }
  .foot-in { max-width: 1164px; padding-right: 472px; }
}
