/* B1B2 사이트 — 앱 디자인 토큰(ParkLogger/Design/Theme.swift, DESIGN_GUIDE 3·5장)을 그대로 쓴다.
   밝은 화면: Sage 바탕 + Evergreen 글자 + Evergreen 주 버튼. 어두운 화면: Evergreen 바탕 + Porcelain 글자 + Mint 주 버튼.
   글꼴 Wanted Sans(OFL) Regular / SemiBold, 좌우 여백 24, 주 버튼 높이 52·모서리 17, 옅은 카드 = 글자색 7 %. */

@font-face {
  font-family: "Wanted Sans";
  src: url("/assets/fonts/WantedSans-Regular.woff?v=a7e4b8079e") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wanted Sans";
  src: url("/assets/fonts/WantedSans-SemiBold.woff?v=a7e4b8079e") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #EFF2E9;              /* Sage */
  --ink: #073D39;             /* Evergreen */
  --muted: #4F7165;           /* Secondary text */
  --quiet: rgba(7, 61, 57, 0.07);
  --line: rgba(7, 61, 57, 0.12);
  --primary: #073D39;
  --on-primary: #E2F8E8;
  --teal: #3BCDB4;
  --bar: rgba(59, 205, 180, 0.5);
  --chip: rgba(59, 205, 180, 0.22);
  --warn-bg: #F1D7BB;         /* Unresolved */
  --warn: #704923;
  --frame: #10201E;
  --island: #050B0A;
  --margin: 24px;
  --button-h: 52px;
  --button-r: 17px;
  --card-r: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #073D39;
    --ink: #F4F5EB;           /* Porcelain */
    --muted: #A6C7BA;
    --quiet: rgba(244, 245, 235, 0.07);
    --line: rgba(244, 245, 235, 0.14);
    --primary: #C3F7DF;       /* Mint */
    --on-primary: #073D39;
    --bar: rgba(59, 205, 180, 0.55);
    --chip: rgba(59, 205, 180, 0.2);
    --warn-bg: rgba(241, 215, 187, 0.16);
    --warn: #F1D7BB;
    --frame: #021C1A;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(ko) { word-break: keep-all; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }

p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--margin); }

.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--margin); }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
}
.skip:focus { left: 16px; }

/* 머리 */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { font-weight: 600; }

.nav .lang {
  margin-left: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--quiet);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 480px) {
  .nav .nav-privacy { display: none; }   /* 아래 바닥글에 있다 */
}

/* 첫 화면 */

/* 제목 · 영상 · 설명 — 넓은 화면은 왼쪽 글·오른쪽 영상, 좁은 화면은 제목 바로 아래 영상 (2026-10-15 개발자: 영상을 앞단에) */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "head media" "body media";
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero-head { grid-area: head; align-self: end; }
.hero-media { grid-area: media; align-self: center; display: grid; justify-items: center; }
.hero-body { grid-area: body; align-self: start; }

.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 15px; font-weight: 600; }

h1 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 32em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }

.req { margin: 0; color: var(--muted); font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-h);
  padding: 0 26px;
  border-radius: var(--button-r);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--primary); color: var(--on-primary); }
.button.primary:hover { filter: brightness(1.08); }
.button.soon { background: var(--quiet); color: var(--muted); cursor: default; }
.button.quiet { background: var(--quiet); color: var(--ink); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "media" "body";
    grid-template-rows: auto;
    row-gap: 24px;
    padding-top: 24px;
    padding-bottom: 48px;
  }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero .lead { margin-top: 0; }
}

/* 영상 — 세로 9:16. 자동 재생(소리 없이)·멈춤·소리는 브라우저 기본 컨트롤 (스크립트 없음) */

.film { margin: 0; width: min(100%, 380px); }
.film-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--frame);
  box-shadow: 0 24px 60px rgba(7, 61, 57, 0.18);
}
.film-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 860px) {
  /* 첫 화면에 제목·영상이 함께 들어오게 — 영상 높이를 화면 높이에 맞춘다 */
  .film-ad { width: min(100%, 360px, calc((100svh - 290px) * 9 / 16)); min-width: 220px; }
}

.script { margin-top: 28px; color: var(--muted); font-size: 15px; }
.script summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ink); font-weight: 600; }
.script p { margin: 0 0 8px; }

/* 실제 앱 화면 + 세 단계 */

.show { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
.show > .show-copy:only-child { grid-column: 1 / -1; }
.show .film { justify-self: center; width: min(100%, 320px); }
.show .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }

@media (max-width: 760px) {
  .show { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .show .film { width: min(100%, 260px, calc((100svh - 160px) * 0.46)); }   /* 590 × 1280 — 화면 높이 안에 */
}

/* 폰 목업 — 앱 홈(HomeView)을 393 × 852 pt 그대로 옮긴다. 1 pt = --pt */

.phone {
  justify-self: center;
  width: min(316px, 100%);
  margin: 0;
  container-type: inline-size;
}

.screen {
  --pt: calc(100cqw / 413);              /* 화면 393 pt + 테두리 2 × 10 pt */
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 413 / 872;
  padding: calc(59 * var(--pt)) calc(24 * var(--pt)) calc(34 * var(--pt));
  border: calc(10 * var(--pt)) solid var(--frame);
  border-radius: calc(64 * var(--pt));
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -24px rgba(7, 61, 57, 0.45);
  overflow: hidden;
  word-break: keep-all;
  line-height: 1.25;
}

.screen::before {                         /* 다이내믹 아일랜드 */
  content: "";
  position: absolute;
  top: calc(11 * var(--pt));
  left: 50%;
  width: calc(124 * var(--pt));
  height: calc(36 * var(--pt));
  border-radius: calc(18 * var(--pt));
  background: var(--island);
  transform: translateX(-50%);
}

.app-bar { display: flex; align-items: center; justify-content: space-between; min-height: calc(44 * var(--pt)); margin-top: calc(4 * var(--pt)); }
.app-name { font-size: calc(20 * var(--pt)); font-weight: 600; }
.app-info {
  display: grid;
  place-items: center;
  width: calc(36 * var(--pt));
  height: calc(36 * var(--pt));
  margin-right: calc(4 * var(--pt));
  border-radius: 50%;
  background: var(--quiet);
  font-size: calc(16 * var(--pt));
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
}

.app-status { margin: calc(18 * var(--pt)) 0 0; color: var(--muted); font-size: calc(13 * var(--pt)); font-weight: 600; }

.app-floor { display: flex; align-items: baseline; gap: calc(16 * var(--pt)); margin-top: calc(4 * var(--pt)); }
.app-level { font-size: calc(88 * var(--pt)); font-weight: 600; letter-spacing: calc(-2 * var(--pt)); line-height: 1; }
.app-level-name { color: var(--muted); font-size: calc(20 * var(--pt)); }
.app-edit {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--pt));
  margin-left: auto;
  padding: calc(10 * var(--pt)) calc(14 * var(--pt));
  border-radius: 999px;
  background: var(--quiet);
  font-size: calc(15 * var(--pt));
  font-weight: 600;
}
.app-edit svg { width: calc(13 * var(--pt)); height: calc(13 * var(--pt)); }

.app-place { margin: calc(2 * var(--pt)) 0 0; font-size: calc(20 * var(--pt)); font-weight: 600; }
.app-meta { margin: calc(6 * var(--pt)) 0 0; color: var(--muted); font-size: calc(12 * var(--pt)); }

.app-scene {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: calc(100% + 24 * var(--pt));
  max-width: none;
  margin: calc(12 * var(--pt)) calc(-12 * var(--pt)) 0;
  object-fit: contain;
}

.app-history {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--pt));
  min-height: calc(52 * var(--pt));
  margin-top: calc(20 * var(--pt));
  padding: 0 calc(18 * var(--pt));
  border-radius: calc(17 * var(--pt));
  background: var(--quiet);
  font-size: calc(15 * var(--pt));
  font-weight: 600;
}
.app-history span { flex: 1; }
.app-history svg { width: calc(17 * var(--pt)); height: calc(17 * var(--pt)); }
.app-history svg:last-child { width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); color: var(--muted); }

.icon { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.phone-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* 구역 */

.section { padding-top: 40px; padding-bottom: 40px; }

h2 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.steps h3 { margin-top: 16px; }
.steps p { margin: 8px 0 0; color: var(--muted); }

.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 600;
}

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card { padding: 28px; border-radius: var(--card-r); background: var(--quiet); }
.card h3 { margin-top: 18px; }
.card p { margin: 8px 0 0; color: var(--muted); }

.visual { display: flex; align-items: center; min-height: 64px; }

.visual.chips { flex-wrap: wrap; gap: 8px; }

/* 기압 흔적 — 도로 언덕(흐린 점선)은 세지 않고, 경사로마다 한 층 */
.trace svg { display: block; width: 100%; max-width: 280px; height: auto; overflow: visible; }
.trace .grid { stroke: var(--line); stroke-width: 1; }
.trace .road { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.55; }
.trace .line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trace .hit { fill: var(--teal); }
.trace text { fill: var(--muted); font-size: 12px; font-weight: 600; }
.trace text.now { fill: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--chip);
  font-size: 16px;
  font-weight: 600;
}
.chip.warn { background: var(--warn-bg); color: var(--warn); }

.bars { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; max-width: 280px; }
.bar { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.bar b { display: block; height: 10px; border-radius: 5px; background: var(--bar); }
.bar b.top { background: var(--primary); }
.bar b.w1 { width: 34%; }
.bar b.w2 { width: 67%; }
.bar b.w3 { width: 100%; }
.bar em { color: var(--muted); font-style: normal; font-weight: 400; text-align: right; }

.note { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.note p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .steps, .cards { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 28px; padding-bottom: 28px; }
}

/* 지원 · 처리방침 · 404 */

.page, .doc { padding-top: 40px; padding-bottom: 24px; }

.page h1, .doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.2; letter-spacing: -0.02em; }

.page .lead { margin-top: 12px; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 56px; }
.contact-item { padding: 24px; border-radius: var(--card-r); background: var(--quiet); }
.contact-item h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: 0; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item strong, .contact-item a { color: var(--ink); font-weight: 600; }
.contact-item a { overflow-wrap: anywhere; }

.faq-title { margin-bottom: 8px; font-size: 24px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  min-height: 44px;
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }
.faq strong { color: var(--ink); }

.missing { padding-top: 72px; padding-bottom: 72px; }
.missing .eyebrow { font-size: 15px; }
.missing .button { margin-top: 20px; }

.doc .effective { margin: 0; color: var(--muted); }
.doc h2 { margin: 48px 0 12px; font-size: 22px; letter-spacing: -0.01em; scroll-margin-top: 80px; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; scroll-margin-top: 80px; }
.doc p { margin: 12px 0; }
.doc ul { margin: 12px 0; padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { overflow-wrap: anywhere; }
.doc .callout { margin: 28px 0; padding: 22px 26px; border-radius: var(--card-r); background: var(--quiet); }
.doc .callout p { margin: 0 0 6px; }
.doc .callout ul { margin: 0; }
.doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc td:first-child { font-weight: 600; white-space: nowrap; }

@media (max-width: 560px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .doc td:first-child { white-space: normal; min-width: 6.5em; }
}

/* 바닥글 */

.foot { margin-top: 40px; padding: 0 0 48px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
