/* Nurse Plan 홈페이지. 프로그램과 같은 팔레트·글꼴(Pretendard, jsDelivr에서 필요한 글자만 받음) */
:root {
  --night: #141a33;
  --night-2: #1d2547;
  --paper: #f2f4f7;
  --card: #ffffff;
  --ink: #161c2e;
  --muted: #5c6578;
  --line: #e3e7ee;
  --scrub: #136b5b;
  --scrub-ink: #0e5446;
  --sun: #f2c14e;
  --leaf: #5dbb82;
  --dusk: #4652c8;

  --d-bg: #fff2c2; --d-fg: #7a5200;
  --e-bg: #dcf1e2; --e-fg: #1b6a39;
  --n-bg: #343a87; --n-fg: #ffffff;
  --o-bg: #ffffff; --o-fg: #a3a9b5;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 머리글 */
.top { background: var(--night); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand small { font-weight: 450; font-size: 13px; color: #aeb5cf; margin-left: 2px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: #d4d9ec; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.top nav a:hover { color: #fff; background: var(--night-2); }
@media (max-width: 640px) { .top nav a.hide-s { display: none; } .brand small { display: none; } }

/* 첫 화면 */
.hero { background: var(--night); color: #fff; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 820; margin: 0 0 20px; }
.hero h1 .line { display: block; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 19px); color: #c9cfe4; margin: 0 0 32px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 12px; border: 0; cursor: pointer; }
.btn-dl { background: var(--sun); color: #2a1d00; box-shadow: 0 6px 0 #c8962a; transition: transform .12s, box-shadow .12s; }
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 7px 0 #c8962a; }
.btn-dl:active { transform: translateY(5px); box-shadow: 0 1px 0 #c8962a; }
.btn-dl svg { width: 20px; height: 20px; }
.cta .meta { font-size: 14px; color: #9ea6c4; line-height: 1.5; }

/* 근무표 미리보기: 첫 화면에서 한 번만 칸이 채워짐 */
.sheet { margin: 0; background: var(--card); color: var(--ink); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.sheet-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 4px 12px; }
.sheet-head b { font-size: 16px; }
.sheet-head span { font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: 52px repeat(14, minmax(0, 1fr)); gap: 3px; font-size: 12px; }
.grid .h { text-align: center; color: var(--muted); font-size: 11px; padding-bottom: 2px; }
.grid .h.sat { color: #2c62c9; }
.grid .h.sun { color: #d23d3d; }
.grid .nm { font-weight: 600; font-size: 12px; align-self: center; white-space: nowrap; overflow: hidden; }
.grid .c { aspect-ratio: 1 / 1.05; border-radius: 5px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: #f4f6f9; color: transparent; }
.grid .c.D { background: var(--d-bg); color: var(--d-fg); }
.grid .c.E { background: var(--e-bg); color: var(--e-fg); }
.grid .c.N { background: var(--n-bg); color: var(--n-fg); }
.grid .c.O { background: var(--o-bg); color: var(--o-fg); box-shadow: inset 0 0 0 1px var(--line); }
.sheet-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.sheet-foot .ok { color: var(--scrub); font-weight: 650; }
.js .sheet .c { transition: background-color .25s, color .25s, box-shadow .25s; }
.js .sheet:not(.done) .sheet-foot .ok { opacity: 0; }
.sheet .sheet-foot .ok { transition: opacity .4s .1s; }
@media (max-width: 520px) {
  .grid { grid-template-columns: 40px repeat(10, minmax(0, 1fr)); }
  .grid .x { display: none; }
  .sheet { padding: 14px 12px 12px; }
}

/* 본문 구역 */
section.block { padding: clamp(64px, 9vw, 112px) 0; }
section.block + section.block { padding-top: 0; }
.block h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 780; margin: 0 0 14px; }
.block .intro { color: var(--muted); max-width: 36em; margin: 0 0 40px; }

/* 규칙: 앱과 같은 "꼭 / 가능하면" 구분 */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.rules > div { background: var(--card); border-radius: 16px; padding: 28px 28px 22px; border: 1px solid var(--line); }
.rules h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.rules .sub { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.rules ul { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 11px 0 11px 30px; border-top: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.55; }
.rules li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 16px; height: 16px; border-radius: 5px; }
.rules .must li::before { background: var(--scrub); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat; }
.rules .soft li::before { width: 10px; height: 10px; left: 5px; top: 18px; border-radius: 50%; background: var(--leaf); }
.rules .must { border-top: 5px solid var(--scrub); }
.rules .soft { border-top: 5px solid var(--leaf); }

/* 사용 순서: 실제 순서라 번호를 씀 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 20px 20px 4px 0; }
@media (max-width: 900px) { .steps li { padding: 18px 0 14px 56px; border-bottom: 1px solid var(--line); position: relative; } }
.steps li::before { content: counter(s); display: block; font-size: 34px; font-weight: 300; line-height: 1; color: var(--scrub); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .steps li::before { position: absolute; left: 0; top: 18px; } }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; line-height: 1.6; display: block; }

/* 내 데이터 */
.data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .data { grid-template-columns: 1fr; } }
.data dl { margin: 0; }
.data dt { font-weight: 700; margin-top: 18px; }
.data dt:first-child { margin-top: 0; }
.data dd { margin: 2px 0 0; color: var(--muted); }

/* 다운로드 */
.download { background: var(--night); color: #fff; padding: clamp(64px, 9vw, 104px) 0; }
.download .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .download .wrap { grid-template-columns: 1fr; } }
.download h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 12px; }
.download p { color: #c9cfe4; margin: 0 0 28px; }
.download .spec { font-size: 14px; color: #9ea6c4; margin-top: 18px; }
.howto { background: var(--night-2); border-radius: 16px; padding: 24px 26px; }
.howto h3 { margin: 0 0 6px; font-size: 17px; }
.howto p { font-size: 15px; margin: 0 0 14px; color: #b7bed8; }
.howto ol { margin: 0; padding-left: 22px; color: #e6e9f4; font-size: 15px; }
.howto li { margin: 6px 0; }
.howto kbd { font-family: inherit; background: #2d3762; border-radius: 6px; padding: 1px 7px; font-size: 14px; white-space: nowrap; }

/* 바닥글 */
.foot { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot .links a.strong { font-weight: 700; color: var(--ink); }
.foot .copy { margin-left: auto; }
@media (max-width: 640px) { .foot .copy { margin-left: 0; width: 100%; } }

/* 방침·약관 문서 */
.doc { background: var(--card); }
.doc .wrap { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.25; margin: 0 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc .summary { background: var(--paper); border-radius: 14px; padding: 20px 24px; margin: 0 0 40px; }
.doc .summary p { margin: 0 0 8px; }
.doc .summary ul { margin: 0; padding-left: 20px; }
.doc h2 { font-size: 21px; letter-spacing: -0.015em; margin: 44px 0 10px; padding-top: 4px; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 1.8; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 6px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.doc th { background: var(--paper); font-weight: 650; white-space: nowrap; }
.doc .tbl { overflow-x: auto; }
.doc .toc { columns: 2; column-gap: 32px; padding-left: 22px; margin: 0 0 8px; font-size: 15px; }
@media (max-width: 640px) { .doc .toc { columns: 1; } }
.doc .toc a { text-decoration: none; color: var(--scrub-ink); }
.doc .toc a:hover { text-decoration: underline; }
.foot .biz { width: 100%; margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: #7a8294; }
