:root{
  --paper:#ffffff; --mist:#EEF4F2; --ink:#1B2A30; --muted:#51636A;
  --rose:#D42A68; --rose-soft:#FCE6EE; --jade:#167F74; --jade-soft:#D9F0EC;
  --sun:#FFC83D; --line:#CFDAD7;
  --display:"Hahmlet","Noto Serif KR",serif;
  --body:"IBM Plex Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --wrap:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,p,ol,ul,figure,fieldset{margin:0;padding:0}
fieldset{border:0;min-width:0}
ul,ol{list-style:none}
:focus-visible{outline:3px solid var(--jade);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:10px 14px;z-index:10}
.skip:focus{left:8px;top:8px}

/* 상단 */
.top{max-width:var(--wrap);margin:0 auto;padding:18px 20px 10px;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 28px}
.mark{font-family:var(--display);font-weight:800;font-size:26px;letter-spacing:-.02em;text-decoration:none;color:var(--ink)}
.mark::after{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--rose);margin-left:4px;vertical-align:baseline}
.mark.small{font-size:20px}
.top nav{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.top nav a{text-decoration:none;font-weight:500;font-size:15.5px;padding:8px 12px;border-radius:999px;color:var(--muted)}
.top nav a:hover{color:var(--ink);background:var(--mist)}
.top nav a[aria-current="page"]{color:var(--ink);background:var(--mist);font-weight:600}

main{max-width:var(--wrap);margin:0 auto;padding:0 20px 72px}
.view[hidden]{display:none}

/* 글자 */
h1{font-family:var(--display);font-weight:800;font-size:clamp(34px,7.4vw,60px);line-height:1.16;letter-spacing:-.03em}
h2{font-family:var(--display);font-weight:700;font-size:clamp(24px,4.4vw,32px);line-height:1.25;letter-spacing:-.02em}
h3{font-size:18px;font-weight:600;line-height:1.35}
.lead{font-size:clamp(17px,2.4vw,20px);color:var(--muted);margin-top:16px;max-width:34em}
.sub{color:var(--muted);margin-top:6px}
.note,.asof{font-size:14.5px;color:var(--muted);max-width:60em}
.asof{margin-top:12px}
.note{margin-top:20px}

/* 홈 히어로 */
.hero{display:grid;gap:36px;padding:28px 0 8px}
.hero-side{display:flex;justify-content:center;padding:10px 0 26px}
@media (min-width:860px){
  .hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center;padding:56px 0 28px}
}

/* 계산 폼 */
.calc{margin-top:28px;display:grid;gap:18px;max-width:460px}
.field label,.field legend{display:block;font-weight:600;font-size:15px;margin-bottom:8px}
input[type="date"]{width:100%;font:inherit;font-size:18px;padding:13px 14px;border:2px solid var(--ink);border-radius:10px;background:#fff;color:var(--ink);min-height:54px}
.seg{display:grid;grid-template-columns:repeat(4,1fr);border:2px solid var(--ink);border-radius:10px;overflow:hidden}
.seg label{margin:0;position:relative}
.seg input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.seg span{display:block;text-align:center;padding:13px 4px;font-weight:500;font-size:16px;border-left:1px solid var(--line)}
.seg label:first-child span{border-left:0}
.seg input:checked + span{background:var(--ink);color:#fff;font-weight:600}
.seg input:focus-visible + span{outline:3px solid var(--jade);outline-offset:-3px}
.btn{font:inherit;font-weight:600;font-size:17px;border-radius:999px;padding:15px 26px;border:2px solid var(--ink);cursor:pointer;min-height:54px}
.btn.primary{background:var(--rose);border-color:var(--rose);color:#fff}
.btn.primary:hover{background:#B81F57;border-color:#B81F57}
.btn.ghost{background:#fff;color:var(--ink)}
.btn.ghost:hover{background:var(--mist)}
.err{color:#B3261E;font-weight:500;font-size:15px}

/* 일력 */
.ilyeok{position:relative;width:min(100%,360px);background:#fff;border:2px solid var(--ink);border-radius:6px 6px 14px 14px;padding:46px 26px 24px;text-align:center;transform:rotate(-1.6deg)}
.ilyeok::before,.ilyeok::after{content:"";position:absolute;left:8px;right:-8px;top:10px;bottom:-9px;border:2px solid var(--ink);border-radius:6px 6px 14px 14px;background:var(--jade-soft);z-index:-1}
.ilyeok::after{left:16px;right:-16px;top:20px;bottom:-18px;background:var(--rose-soft);z-index:-2}
.ilyeok-bind{position:absolute;left:0;right:0;top:0;height:30px;background:var(--jade);border-radius:3px 3px 0 0;display:flex;justify-content:space-around;align-items:center;padding:0 22%}
.ilyeok-bind i{width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid var(--ink)}
.ilyeok-top{font-weight:600;font-size:15.5px;color:var(--jade)}
.ilyeok-d{font-family:var(--display);font-weight:800;font-size:clamp(64px,19vw,96px);line-height:1.05;letter-spacing:-.04em;color:var(--rose);margin:6px 0 4px;font-variant-numeric:tabular-nums}
.ilyeok-date{font-weight:500;font-size:17px}
.road{height:12px;border-radius:999px;background:var(--mist);border:2px solid var(--ink);margin-top:22px;overflow:hidden}
.road-fill{height:100%;width:0;background:var(--rose);transition:width .7s cubic-bezier(.2,.7,.2,1)}
.road-label{display:flex;justify-content:space-between;font-size:14px;font-weight:500;color:var(--muted);margin-top:8px}
.road-label span:nth-child(2){color:var(--ink);font-weight:600}
@media (prefers-reduced-motion:reduce){.road-fill{transition:none}}

/* 결과 날짜 */
.result{margin-top:36px;padding:28px 22px;background:var(--mist);border-radius:18px}
.dates{margin-top:18px;display:grid;gap:0}
.dates li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:14px 0;border-top:1px solid var(--line);align-items:baseline}
.dates li:first-child{border-top:0}
.dates .what{font-weight:600}
.dates .when{font-variant-numeric:tabular-nums;font-weight:500;text-align:right}
.dates .left{grid-column:1/-1;font-size:14.5px;color:var(--muted)}
.dates li.past .what,.dates li.past .when{color:var(--muted)}
.dates li.goal .what,.dates li.goal .when{color:var(--rose);font-size:19px}
.result-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}
.copied{font-weight:500;color:var(--jade)}
@media (min-width:860px){.result{padding:36px 40px}.dates li{grid-template-columns:200px 1fr auto}.dates .left{grid-column:auto;order:2}.dates .when{order:3}}

/* 사진 자리 */
.shot{position:relative;overflow:hidden;border-radius:14px;background:var(--mist)}
.shot.wide{aspect-ratio:4/5;margin-top:8px}
@media (min-width:860px){.shot.wide{max-width:440px;margin:28px auto 0}}
.shot.r43{aspect-ratio:1/1}.shot.r32{aspect-ratio:4/5}
@media (min-width:860px){.page-head .shot.r32{max-width:400px;width:100%;justify-self:end}}.shot.r11{aspect-ratio:1/1}
.shot img{width:100%;height:100%;object-fit:cover}
.shot.empty{background:repeating-linear-gradient(135deg,var(--mist) 0 14px,#E3ECE9 14px 28px)}
.shot.empty img{display:none}
.shot.empty::after{content:"사진 자리: " attr(data-cap);position:absolute;left:10px;right:10px;bottom:10px;font-size:13px;line-height:1.4;color:var(--muted);background:rgba(255,255,255,.92);padding:6px 9px;border-radius:8px}

/* 시기 */
.phases{margin-top:72px}
.phase-grid{margin-top:22px;display:grid;gap:22px 18px;grid-template-columns:repeat(2,minmax(0,1fr))}
.phase{text-decoration:none;display:block}
.phase.big{grid-column:1/-1}
.phase h3{margin-top:12px;font-size:19px}
.phase p{color:var(--muted);font-size:15.5px}
.phase:hover h3{text-decoration:underline;text-decoration-color:var(--rose);text-decoration-thickness:3px;text-underline-offset:5px}
@media (min-width:860px){
  .phase-grid{grid-template-columns:1.5fr 1fr 1fr 1fr;gap:24px}
  .phase.big{grid-column:auto}
  .phase.big .shot{aspect-ratio:1/1}
}

/* 안쪽 페이지 머리 */
.page-head{display:grid;gap:24px;padding:28px 0 8px}
.page-head h1{font-size:clamp(32px,6.6vw,52px)}
@media (min-width:860px){.page-head{grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;padding:48px 0 16px}}
.view > h2{margin-top:52px}

/* 체크리스트 */
.progress{margin-top:26px;font-weight:600;font-size:16px;color:var(--jade)}
.lists{display:grid;gap:36px;margin-top:18px}
@media (min-width:860px){.lists{grid-template-columns:.8fr 1.2fr;gap:56px;align-items:start}}
.clist h2{font-size:22px;padding-bottom:10px;border-bottom:3px solid var(--ink)}
.clist.must h2{border-color:var(--rose)}
.clist.good h2{border-color:var(--jade)}
.clist li{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}
.clist label{display:flex;gap:14px;align-items:flex-start;cursor:pointer;flex:1;min-width:0}
.clist input{appearance:none;-webkit-appearance:none;flex:none;width:26px;height:26px;border:2px solid var(--ink);border-radius:7px;margin:2px 0 0;background:#fff;display:grid;place-content:center;cursor:pointer}
.clist input:checked{background:var(--jade);border-color:var(--jade)}
.clist input:checked::after{content:"";width:7px;height:13px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-1px,-1px)}
.clist label span{font-size:15.5px;color:var(--muted);line-height:1.5}
.clist label b{display:block;font-size:17px;font-weight:600;color:var(--ink)}
.clist input:checked ~ span b{text-decoration:line-through;color:var(--muted)}
.buy{flex:none;font-size:14.5px;font-weight:600;color:var(--rose);text-decoration:none;border:1.5px solid var(--rose);border-radius:999px;padding:7px 12px;white-space:nowrap;margin-top:2px}
.buy:hover{background:var(--rose);color:#fff}

.tip{margin-top:48px;background:var(--rose-soft);border-radius:18px;padding:26px 24px;max-width:760px}
.tip h2{font-size:21px}
.tip p{margin-top:8px}

/* 수료식 순서: 실제 순서라서 번호를 씀 */
.steps{margin-top:18px;counter-reset:s;display:grid;gap:0;max-width:760px}
.steps li{counter-increment:s;position:relative;padding:0 0 26px 58px}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;font-family:var(--display);font-weight:700;display:grid;place-content:center}
.steps li::after{content:"";position:absolute;left:19px;top:44px;bottom:4px;width:2px;background:var(--line)}
.steps li:last-child::after{display:none}
.steps h3{padding-top:7px}
.steps p{color:var(--muted);margin-top:4px}

.pack{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}
@media (min-width:860px){.pack{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}}
.pack-item{text-decoration:none;display:block}
.pack-item h3{margin-top:12px}
.pack-item p{font-size:15px;color:var(--muted)}
.buy-text{display:inline-block;margin-top:8px;font-size:14.5px;font-weight:600;color:var(--rose);border-bottom:2px solid var(--rose)}

/* 선물 */
.tabs{display:flex;gap:8px;margin-top:30px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{font:inherit;font-weight:600;font-size:16px;white-space:nowrap;padding:11px 18px;border-radius:999px;border:2px solid var(--ink);background:#fff;color:var(--ink);cursor:pointer;min-height:48px}
.tabs button[aria-selected="true"]{background:var(--ink);color:#fff}
.gifts{margin-top:22px;display:grid;gap:0;max-width:820px}
.gift{display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--line);align-items:start}
.gift h3{font-size:18.5px}
.gift .why{color:var(--muted);font-size:15.5px;margin-top:4px}
.gift .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
.price{font-weight:600;font-size:14.5px;background:var(--sun);padding:4px 10px;border-radius:6px}
@media (min-width:860px){.gift{grid-template-columns:150px minmax(0,1fr);gap:24px;padding:22px 0}}

.foot{border-top:2px solid var(--ink);max-width:var(--wrap);margin:0 auto;padding:26px 20px 48px;color:var(--muted);font-size:15px}
.foot .mark{display:block;margin-bottom:6px}

/* 상품 사진이 아직 없으면 칸을 접는다 (제휴 링크 연결 뒤 실제 상품 사진이 들어옴) */
.gift .shot.empty{display:none}
.gift:has(.shot.empty){grid-template-columns:minmax(0,1fr)}

/* 카드 전체가 링크 */
a.gift{text-decoration:none;color:inherit;position:relative;padding-right:22px}
a.gift::after{content:"";position:absolute;right:4px;top:50%;width:9px;height:9px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:translateY(-50%) rotate(45deg);opacity:.55}
a.gift:hover h3{text-decoration:underline;text-underline-offset:4px}
a.gift:focus-visible{outline:2px solid var(--rose);outline-offset:4px}
.buy{border:0;padding:10px 8px;margin:0;border-radius:8px;display:inline-flex;align-items:center}
.buy::after{content:"";width:9px;height:9px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:rotate(45deg);opacity:.6}
.buy:hover{background:transparent}.buy:hover::after{border-color:var(--rose);opacity:1}

/* ===== 2차 정리: 흔들림 제거, 꾸밈 덜어내기 ===== */
:root{
  --display:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;
  --line:#E3E6E8; --mist:#F4F6F6; --muted:#5B666B; --ink:#16191C;
}
html,body{overflow-x:clip;max-width:100%}
body{font-size:16.5px;line-height:1.6}
h1{font-weight:800;font-size:clamp(30px,7.6vw,52px);line-height:1.22;letter-spacing:-.035em}
h2{font-weight:700;font-size:clamp(21px,5vw,28px);letter-spacing:-.025em}
.page-head h1{font-size:clamp(28px,7vw,46px)}
.mark{font-weight:800;font-size:22px;letter-spacing:-.04em}
.mark::after{display:none}
.top{align-items:center;padding:14px 20px 0;border-bottom:1px solid var(--line);gap:0 20px}
.top nav{gap:0;margin-left:0;width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.top nav::-webkit-scrollbar{display:none}
.top nav a{border-radius:0;padding:12px 2px;margin-right:20px;font-size:15.5px;white-space:nowrap;border-bottom:2px solid transparent}
.top nav a:hover{background:none}
.top nav a[aria-current="page"]{background:none;border-bottom-color:var(--ink);font-weight:700}
@media (min-width:860px){.top{padding:0 20px;gap:0 36px}.top nav{width:auto}.top nav a{padding:20px 2px}}
.hero{gap:24px;padding:26px 0 8px}
.lead{margin-top:12px;font-size:16.5px}
input[type="date"]{border:1px solid #C9CFD2;min-height:52px;font-size:17px}
input[type="date"]:focus{border-color:var(--ink)}
.seg{border:1px solid #C9CFD2}
.seg span{font-size:15.5px}
.btn{border-radius:12px;border-width:1px;min-height:52px;font-size:16.5px;font-weight:700}
.btn.primary{width:100%}
.btn.ghost{border-color:#C9CFD2}
/* 결과: 종이 달력 꾸밈을 없애고 숫자만 크게 */
.hero-side{display:block;padding:0}
.ilyeok{transform:none;width:100%;max-width:460px;border:0;border-radius:14px;background:var(--mist);padding:22px 22px 20px;text-align:left}
.ilyeok::before,.ilyeok::after{display:none}
.ilyeok-top{color:var(--muted);font-weight:500;font-size:15px}
.ilyeok-d{font-size:clamp(52px,16vw,76px);line-height:1.1;margin:2px 0 2px;letter-spacing:-.045em}
.ilyeok-date{font-size:16.5px;font-weight:600}
.road{height:6px;border:0;background:#DDE2E4;margin-top:18px}
.road-label{font-size:13.5px}
.result{background:none;border-radius:0;padding:0;margin-top:40px}
.dates{border-top:1px solid var(--ink);margin-top:14px}
.dates li{padding:13px 0}
.dates li:first-child{border-top:0}
.shot{border-radius:10px}
.phases{margin-top:56px}
.clist h2{border-bottom-width:1px;border-color:var(--ink)!important;font-size:19px}
.tabs button,.tab{border-width:1px}
@media (min-width:860px){.result{padding:0}.btn.primary{width:auto}}

/* 화살표 없애고 상품 사진·이름을 보여 줌 */
a.gift{padding-right:0}
a.gift::after{display:none}
.gift .pname{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.4}
.gift .shot{background:#fff;border:1px solid var(--line)}
.gift .shot img{object-fit:contain}

.buy{padding:0;margin:0 0 0 8px}
.buy::after{display:none}
.buy[hidden]{display:none}
.buy img{width:56px;height:56px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff}
.price{background:none;padding:0;font-size:16px;font-weight:700}

/* 수료식 음식 안내 */
.dos{list-style:none;margin-top:14px;border-top:1px solid var(--ink);max-width:760px}
.dos li{padding:16px 0;border-bottom:1px solid var(--line)}
.dos h3{font-size:17.5px;font-weight:700}
.dos p{margin-top:5px;color:var(--muted)}

.tabs{flex-wrap:wrap;overflow:visible;gap:8px}
.tabs button{padding:9px 15px;min-height:44px;font-size:15.5px}

.disclosure{font-size:12.5px;line-height:1.5;color:var(--muted);padding:8px 20px;max-width:1180px;margin:0 auto}

/* 자주 묻는 것 */
.faq{margin-top:14px;border-top:1px solid var(--ink);max-width:760px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;padding:16px 28px 16px 0;font-weight:700;font-size:17px;list-style:none;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:4px;top:14px;font-weight:400;font-size:22px;color:var(--muted)}
.faq details[open] summary::after{content:"\2212"}
.faq p{padding:0 0 18px;color:var(--muted)}
.faq summary:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
/* 작은 계산기, 훈련소 표 */
.calc.mini{max-width:460px;margin-top:16px;display:grid;gap:12px}
.phone-out{max-width:760px;margin-top:14px;min-height:1.6em}
.phone-out b{color:var(--rose)}
.list-title{margin-top:30px;font-size:18px}
.camps{width:100%;max-width:560px;border-collapse:collapse;margin-top:12px;border-top:1px solid var(--ink)}
.camps th,.camps td{text-align:left;padding:13px 0;border-bottom:1px solid var(--line);font-size:16.5px}
.camps th{font-weight:600}
.camps td{color:var(--muted);text-align:right}
.view h2{margin-top:52px}
.page-head+h2{margin-top:40px}
.sub a,.dos a{color:var(--rose);text-underline-offset:3px}

.top nav a{margin-right:16px;font-size:15px}
