/* 06 앱 랜딩 · 3차
   방향: 단계형 스토리. 좌측 글, 우측 고정 화면 2단. 스크롤로 화면만 1·2·3단계 교체.
   서체: Manrope 800(제목, OFL 파일 fonts/) + Pretendard(본문). 사진 없음, 실제 기능 화면만.
   색: 밝은 회색 흰 바탕, 코발트 포인트, 남색 글자. 상단 로고 + 햄버거 하나. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-var.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #F3F5F8;
  --panel: #FFFFFF;
  --navy: #14213D;
  --navy-2: #3B4862;
  --muted: #5A6478;
  --cobalt: #1F4FD8;
  --cobalt-soft: #E6ECFB;
  --line: rgba(20, 33, 61, .12);
  --pad: clamp(20px, 3.9vw, 56px);
  --head: "Manrope", "Pretendard", system-ui, sans-serif;
  --body: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--body); font-size: 17px; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, table { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 30; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.chk { font-size: 15px; color: var(--muted); margin-left: 4px; white-space: nowrap; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 248, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; padding-inline: var(--pad); }
.logo { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 7px; padding: 0;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform .25s ease, opacity .2s ease; }
.menu-btn:hover span:first-child { transform: translateY(-1px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* 전체 메뉴 오버레이 */
.menu { position: fixed; inset: 68px 0 0 0; z-index: 19; background: var(--navy); color: #fff; padding: 48px var(--pad); }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1.2; text-decoration: none; padding: 6px 0; transition: color .2s ease, transform .2s ease; }
.menu nav a:hover { color: #9DB4F5; transform: translateX(6px); }

/* 문제 한 줄 */
.problem { padding: clamp(72px, 10vw, 150px) 0 clamp(56px, 7vw, 96px); }
.problem h1 { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 4.9vw, 72px); line-height: 1.12; letter-spacing: -0.03em; max-width: 17em; }
.problem-sub { margin-top: 26px; font-size: 20px; color: var(--muted); max-width: 34em; }

/* 단계 스토리 */
.stage-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.stage-text { padding-bottom: 20vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .4s ease; }
.step.is-on { opacity: 1; }
.step-no { font-family: var(--head); font-weight: 800; color: var(--cobalt); font-size: 15px; letter-spacing: .04em; }
.step h2 { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.15; letter-spacing: -0.025em; margin: 10px 0 18px; }
.step p:last-child { font-size: 18px; color: var(--navy-2); max-width: 28em; }

.stage-screen {
  position: sticky; top: 104px; height: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.screen {
  position: absolute; inset: 0; padding: 28px 30px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
  display: flex; flex-direction: column; gap: 16px;
}
.screen.is-on { opacity: 1; visibility: visible; transform: none; }
.screen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.screen-title { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.screen-meta { font-size: 15px; color: var(--muted); }

/* 1단계 */
.add { display: flex; gap: 8px; }
.add input { flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 0 14px; background: var(--bg); font-size: 16px; }
.add input:focus { outline: 2px solid var(--cobalt); outline-offset: 0; }
.btn-mini { height: 44px; padding: 0 18px; white-space: nowrap; flex: none; border: 0; border-radius: 4px; background: var(--cobalt); color: #fff; font-weight: 700; cursor: pointer; transition: transform .15s ease, background-color .2s ease; }
.btn-mini:hover { background: #173FB0; transform: translateY(-1px); }
.btn-mini:active { transform: scale(.97); }
.tasks { display: grid; gap: 4px; }
.task label { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 4px; cursor: pointer; transition: background-color .2s ease; }
.task label:hover { background: var(--bg); }
.task input { width: 20px; height: 20px; accent-color: var(--cobalt); margin: 0; }
.task.is-done span { color: var(--muted); text-decoration: line-through; }

/* 2단계 */
.pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.pool-item { border: 1px solid var(--line); background: var(--panel); border-radius: 4px; padding: 8px 14px; font-size: 15px; cursor: pointer; transition: transform .15s ease, border-color .2s ease, background-color .2s ease; }
.pool-item:hover { border-color: var(--cobalt); transform: translateY(-1px); }
.pool-item.is-sel { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.pool-empty { font-size: 15px; color: var(--muted); }
.timeline { display: grid; gap: 4px; overflow: hidden; }
.slot { display: grid; grid-template-columns: 58px 1fr; align-items: stretch; gap: 10px; }
.slot-time { font-size: 15px; color: var(--muted); padding-top: 9px; font-variant-numeric: tabular-nums; }
.slot-cell { min-height: 36px; border: 1px dashed var(--line); border-radius: 4px; background: transparent; text-align: left; padding: 6px 12px; font-size: 15px; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.slot-cell:hover { border-color: var(--cobalt); }
.slot-cell.has-block { background: var(--cobalt-soft); border-style: solid; border-color: transparent; color: var(--navy); font-weight: 500; }

/* 3단계 */
.bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 4px; min-height: 240px; }
.bar-col { height: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; background: var(--cobalt); border-radius: 4px 6px 0 0; min-height: 4px; transition: height .5s ease, background-color .2s ease; }
.bar-col:hover .bar-fill { background: var(--navy); }
.bars-legend { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; text-align: center; font-size: 15px; color: var(--muted); }

/* 요금 */
.price { padding: clamp(72px, 9vw, 130px) 0; }
.price-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.price h2, .faq h2 { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.025em; }
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 4px; }
.toggle button { border: 0; background: transparent; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.toggle button.is-on { background: var(--navy); color: #fff; }
.toggle button:not(.is-on):hover { color: var(--cobalt); }
.save { font-size: 15px; color: var(--cobalt); margin-left: 4px; }
.plans { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.plans th, .plans td { text-align: left; padding: 22px 26px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 16px; }
.plans thead th { font-size: 15px; color: var(--muted); font-weight: 500; }
.plans tbody th { font-family: var(--head); font-weight: 800; font-size: 22px; width: 18%; }
.plans tbody td:nth-child(2) { color: var(--navy-2); }
.plans .num { text-align: right; white-space: nowrap; }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.amount { font-family: var(--head); font-weight: 800; font-size: 26px; }
.per { font-size: 15px; color: var(--muted); }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* 질문 */
.faq { padding: 0 0 clamp(72px, 9vw, 120px); }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-weight: 600; font-size: 18px; transition: color .2s ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--head); font-size: 26px; font-weight: 800; color: var(--cobalt); transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--cobalt); }
.faq-list p { padding: 0 0 22px; color: var(--navy-2); max-width: 46em; }

/* 시작 */
.start { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.start-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.start h2 { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.03em; line-height: 1.12; max-width: 15em; }
.btn-start { display: inline-block; background: #fff; color: var(--navy); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 20px; padding: 20px 36px; border-radius: 4px; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.btn-start:hover { background: #9DB4F5; transform: translateY(-2px); }
.btn-start:active { transform: scale(.98); }

.foot { padding: 36px 0; background: var(--bg); font-size: 15px; border-top: 1px solid var(--line); }
.foot-in { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.logo-s { font-family: var(--head); font-weight: 800; font-size: 18px; }
.foot a { color: var(--cobalt); }

/* 모바일: 2단이 1단이 된다. 화면은 단계 순서대로 쌓는다 */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .stage-in { grid-template-columns: 1fr; gap: 0; }
  .stage-text { padding-bottom: 0; }
  .step { min-height: 0; opacity: 1; padding: 40px 0 8px; }
  .stage-screen { position: static; height: auto; margin: 16px 0 40px; display: grid; gap: 16px; border: 0; background: none; overflow: visible; }
  .screen { position: static; opacity: 1; visibility: visible; transform: none; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 22px 20px; min-height: 420px; }
  .bars { min-height: 200px; }
  .plans th, .plans td { padding: 16px 14px; font-size: 15px; }
  .plans tbody th { font-size: 19px; width: auto; }
  .amount { font-size: 22px; }
  .btn-start { width: 100%; text-align: center; }
}
/* 정지 이미지(?still): 세 화면을 단계 옆에 차례로 펼친다 */
.still .step { min-height: 0; opacity: 1; padding: 0 0 260px; }
.still .stage-text { padding-bottom: 0; }
.still .stage-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.still .stage-screen { position: static; height: auto; display: grid; gap: 24px; border: 0; background: none; overflow: visible; margin-top: 40px; }
.still .screen { position: static; opacity: 1; visibility: visible; transform: none; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; min-height: 560px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 첫 화면: 흰 바탕 제목 + 제품 화면 한 장 + 버튼 두 개 */
.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -0.03em; max-width: 13em; }
.hero .problem-sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-solid { background: var(--cobalt); color: #fff; }
.btn-solid:hover { background: #173FB0; color: #fff; }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-line:hover { color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.hero-shot { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 26px 26px 22px; display: grid; gap: 14px; }
.shot-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.shot-head .screen-title { font-family: var(--head); font-weight: 800; font-size: 22px; }
.shot-head .screen-meta { font-size: 15px; color: var(--muted); }
.shot-add { display: flex; align-items: center; justify-content: space-between; height: 44px; border: 1px solid var(--line); background: var(--bg); padding: 0 6px 0 14px; color: var(--muted); font-size: 15px; }
.shot-btn { background: var(--cobalt); color: #fff; font-weight: 700; padding: 8px 16px; font-size: 15px; }
.shot-list { display: grid; gap: 2px; }
.shot-list li { display: flex; align-items: center; gap: 12px; padding: 12px 10px; font-size: 16px; border-bottom: 1px solid var(--line); }
.shot-list li.is-done { color: var(--muted); text-decoration: line-through; }
.cb { width: 18px; height: 18px; border: 1.5px solid var(--navy-2); border-radius: 2px; flex: none; }
.cb.on { background: var(--cobalt); border-color: var(--cobalt); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-actions .btn-start { width: auto; text-align: left; }
}
