/* Hallmark · redesign: full · theme: Cocomoon night (by request) · genre: atmospheric · direction: develop · hero: banner · nav: slab · footer: letter close · signature: the monitor at bedtime · copy: verbatim · posture: restrained · v2.0.0 */
/* Critique: lead with the shared camera view at dusk, then follow the family into daytime scenes. */
/* Hallmark · waive 79 · the assurances row spans the hero base · four privacy assurances occupy the measured space beneath the monitor */
/* Hallmark · waive 49b · the privacy disclosure wraps on narrow screens · preserving the full privacy link keeps its destination clear */
/* Hallmark · waive 75 · miniature labels belong to the live night monitor · the device conveys the monitor layout at its real proportions */
/* ── 글꼴(제목에 쓰는 글자만 남긴 파일, tools/fonts.sh) ── */
@font-face { font-family: 'Cocomoon Display KO'; src: url('/fonts/display-ko.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Cocomoon Display JA'; src: url('/fonts/display-ja.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Cocomoon Display EN'; src: url('/fonts/display-en.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ink-950: #0b0e29;
  --ink-900: #12163a;
  --ink-700: #535e78;
  --moon: #f7d26e;
  --star: #f4eee1;
  --bg: var(--ink-900);
  --surface: #1b2050;
  --surface-raised: #252b58;
  --text: #eeeae2;
  --text-soft: #c5c9d5;
  --text-faint: #a2acbf;
  --line: #3b455b;
  --accent: #e7d8b5;
  --on-accent: var(--ink-950);
  --shadow: 0 16px 30px -16px rgb(4 6 14 / 60%);
  --device: #171719;
  --clock: #9d9da3;
  --screen: #0c0c0e;
  --sound-label: #c7c7cc;
  --sound-muted: #8e8e93;
  --meter: #2c2c30;
  --green: #34c759;
  --yellow: #ffcc00;
  --orange: #ff9500;
  --horizon: #393044;
  --dusk-glow: rgb(220 157 104 / 14%);
  --moon-haze: #544d40;

  /* 간격(4px 바탕) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --gutter: 24px;
  --wrap: 1248px;
  --radius: 20px;

  /* 글자 역할 */
  --font-body: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cocomoon Display KO', 'AppleMyungjo', 'Nanum Myeongjo', serif;
  --track-display: -0.01em;
  --display-xl: clamp(38px, 4.3vw, 56px);   /* h1 */
  --display-l: clamp(30px, 3.4vw, 44px);    /* 구역 제목·마무리 */
  --title: 22px;                            /* 기능 제목·문서 h2 */
  --lead: 19px;
  --body: 17px;
  --ui: 15px;
  --label: 13px;
  --lh-body: 1.7;
  color-scheme: dark;
}
:lang(ja) {
  --font-body: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-display: 'Cocomoon Display JA', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --track-display: 0;
}
:lang(en) {
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cocomoon Display EN', Georgia, 'Times New Roman', serif;
  --track-display: -0.015em;
  --lh-body: 1.6;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* ── 바탕 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); scrollbar-color: var(--ink-700) var(--ink-950); }
body {
  overflow-x: clip; margin: 0; font-family: var(--font-body); font-size: var(--body); line-height: var(--lh-body);
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: anywhere;
}
body:lang(ja) { word-break: normal; line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-color: var(--accent); }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--moon); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 6px; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── 글자 역할 ── */
.display {
  font-family: var(--font-display); font-weight: 400; letter-spacing: var(--track-display);
  font-feature-settings: 'palt' 1, 'kern' 1; font-synthesis: none;
}
h1.display { font-size: var(--display-xl); line-height: 1.14; }
h2.display { font-size: var(--display-l); line-height: 1.22; }
h3 { font-size: var(--title); line-height: 1.35; font-weight: 700; letter-spacing: -0.005em; }
.lead { font-size: var(--lead); line-height: 1.6; color: var(--text-soft); }
.label { font-size: var(--label); line-height: 1.5; font-weight: 600; color: var(--text-faint); letter-spacing: normal; }
.fine { font-size: var(--label); line-height: 1.6; color: var(--text-faint); }

/* ── 머리말 ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ink-900) 94%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bar { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand .display { font-size: 21px; line-height: 1; }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: 999px; color: var(--text-soft); text-decoration: none; font-size: var(--ui); white-space: nowrap;
}
.nav > a:hover { color: var(--text); background: var(--surface); }
.nav > a[aria-current] { color: var(--accent); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 var(--s-3); border-radius: 999px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--surface); }
.lang-short { display: none; font-weight: 600; letter-spacing: normal; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + var(--s-2)); min-width: 168px; padding: 8px;
  background: var(--surface-raised); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lang li a { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border-radius: 9px; color: var(--text); text-decoration: none; font-size: var(--ui); }
.lang li a:hover { background: var(--surface); }
.lang li a[aria-current] { font-weight: 700; color: var(--accent); }
.lang .sp { width: 1.2em; }
@media (max-width: 600px) {
  html { scroll-padding-top: 112px; }
  .bar { flex-wrap: wrap; height: auto; padding-top: var(--s-2); gap: 0 var(--s-3); }
  .lang { margin-left: auto; }
  .lang-long { display: none; } .lang-short { display: inline; }
  .nav { order: 3; width: calc(100% + 2 * var(--s-2)); margin: 0 calc(-1 * var(--s-2)); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > a { padding: 0 12px; font-size: 14px; }
  /* 아래로 스크롤하면 내비 줄을 접어 화면을 넓게 씁니다 */
  .site-header.tucked { transform: translateY(-48px); }
}

/* ── 단추 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-store { background: var(--moon); color: var(--ink-950); }
.btn-store svg { width: 1.35em; height: 1.35em; }
.btn-light, .btn-primary { background: var(--moon); color: var(--on-accent); }
.btn-light:hover, .btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.store-status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--ui); font-weight: 600; color: var(--text-soft); }
.store-status svg { width: 1.15em; height: 1.15em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── 별·달 ── */
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--star); opacity: 0.85; }

/* The masthead shares the open night sky of the develop design. */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: radial-gradient(ellipse at 84% 100%, var(--dusk-glow), transparent 62%), var(--bg);
}
/* Keep the brightest stars in the open sky above the headline and devices. */
.hero > .sky { opacity: .9; }
.hero > .sky i:nth-child(odd) {
  width: 3px;
  height: 3px;
  opacity: 1;
}
.hero > .sky i:nth-child(odd)::before {
  content: '';
  position: absolute;
  width: calc(5px + var(--s) * 2);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--star);
  border-radius: 0;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}
.hero > .sky i:nth-child(1) { left: 16%; top: 26px; }
.hero > .sky i:nth-child(3) { left: 61%; top: 42px; }
.hero > .sky i:nth-child(5) { left: 83%; top: 28px; }

.hero-moon { position: absolute; top: 20px; right: max(var(--gutter), calc(50% - 590px)); color: var(--moon); }
.hero-moon svg { width: clamp(44px, 6vw, 84px); height: auto; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 68px); padding-block: clamp(64px, 8vw, 116px) 40px; }
.hero-text { min-width: 0; }
h1.display { font-size: clamp(38px, 3.85vw, 58px); line-height: 1.14; }
.hero .lead { max-width: 34em; margin-top: var(--s-5); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero .store-status { margin-top: var(--s-3); }
.hero-media { position: relative; isolation: isolate; display: grid; align-items: center; padding: 8% 9% 8% 1%; min-width: 0; }
.device { position: relative; background: var(--device); box-shadow: var(--shadow); }
.device img { width: 100%; }
.device.tablet { padding: 2%; border-radius: 5% / 7%; }
.device.tablet img { border-radius: 3% / 4%; }
.device.phone { padding: 2.2%; border-radius: 13% / 6%; }
.device.phone img { border-radius: 10% / 4.6%; }
.device.phone.landscape { padding: 1%; border-radius: 6% / 13%; }
.device.phone.landscape img { border-radius: 4.6% / 10%; }
.hero-media .phone { position: absolute; right: 0; bottom: 1%; width: 23%; padding: 0.7%; }
.assurances { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 24px; border-block: 1px solid var(--line); font-size: var(--ui); }
.assurances li { display: flex; align-items: center; justify-content: center; gap: 12px; }
.assurances li + li { border-inline-start: 1px solid var(--line); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); padding-block: 44px 32px; gap: 32px; }
  .hero-media { width: min(100%, 520px); justify-self: center; }
  .assurances { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .assurances li { justify-content: flex-start; }
  .assurances li + li { border: 0; }
}

/* ── 구역 ── */
.section { padding: var(--s-9) 0; }
.section-first { padding-top: var(--s-10); }
.section-tight { padding: var(--s-8) 0; }
.section-head { max-width: 36em; margin-bottom: var(--s-7); }
.section-head p { margin-top: var(--s-3); font-size: var(--lead); line-height: 1.6; color: var(--text-soft); }
@media (max-width: 600px) {
  .section { padding: var(--s-8) 0; }
  .section-first { padding-top: var(--s-9); }
  .section-tight { padding: var(--s-7) 0; }
  .section-head { margin-bottom: var(--s-6); }
}

/* 기능: 공통 */
.feat-text > p { margin-top: var(--s-3); color: var(--text-soft); max-width: 34em; }
.points { margin-top: var(--s-4); display: grid; gap: var(--s-2); font-size: var(--ui); color: var(--text-soft); line-height: 1.55; }
.points li { position: relative; padding-left: var(--s-4); }
.points li::before { content: ''; position: absolute; left: 2px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); }
.pro {
  display: inline-flex; align-items: center; vertical-align: 0.12em; margin-left: 2px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: normal; line-height: 1;
  padding: 4px 8px; border-radius: 999px; color: var(--accent); border: 1px solid var(--line);
}
h3 .pro { vertical-align: 0.25em; }

/* 1) 모니터: 글 왼쪽 · 휴대폰 오른쪽 */
.feat-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.feat-split .feat-media { display: flex; justify-content: center; }
.feat-split .phone { width: min(300px, 70%); }
/* 2) 크게 보기: 가로 화면을 넓게, 글은 아래 두 칸 */
.feat-wide { margin: 0; }
.feat-wide .phone { max-width: 760px; margin: 0 auto; }
.feat-wide .feat-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-1) var(--s-7); max-width: 760px; margin: var(--s-6) auto 0; }
.feat-wide h3 { grid-column: 1; }
.feat-wide .feat-text > p { grid-column: 1; margin-top: var(--s-2); }
.feat-wide .points { grid-column: 2; grid-row: 1 / span 2; margin-top: var(--s-1); }
@media (max-width: 900px) {
  .feat-split { grid-template-columns: 1fr; gap: var(--s-6); }
  .feat-split .feat-media { order: -1; }
  .feat-split .phone { width: min(240px, 60%); }
  .feat-wide { margin-top: var(--s-8); }
  .feat-wide .feat-text { grid-template-columns: 1fr; }
  .feat-wide .points { grid-column: 1; grid-row: auto; margin-top: var(--s-4); }
}

/* 3) 밤 모드: 페이지의 한가운데, 새벽 3시 */
.night-feature {
  position: relative; overflow: hidden; padding: var(--s-10) 0;
  background: var(--ink-950);
}
.night-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; }
.night-media { display: flex; justify-content: center; }
.night-media .live-night { width: min(340px, 80%); }
.night-copy .lead { margin-top: var(--s-4); max-width: 30em; }
.night-alerts { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.night-alerts > p { margin-top: var(--s-3); color: var(--text-soft); }
@media (max-width: 900px) {
  .night-feature { padding: var(--s-9) 0; }
  .night-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .night-media .live-night { width: min(260px, 66%); }
}

/* 4) 장면 · 연결: 나란히 두 칸 */
.pro-note { font-size: var(--ui); color: var(--text-faint); margin-bottom: var(--s-7); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
.feat-col .phone { width: min(220px, 56%); margin-bottom: var(--s-6); }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; gap: var(--s-8); } .feat-col .phone { width: min(200px, 52%); } }

/* 플랫폼: 카드 없이 두 칸 목록 */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-8); max-width: 900px; }
.platforms dt { display: flex; align-items: center; gap: var(--s-3); font-size: var(--title); font-weight: 700; line-height: 1.35; }
.platforms dt svg { width: 30px; height: 30px; color: var(--text-faint); stroke-width: 2; }
.platforms dd { margin-top: var(--s-2); color: var(--text-soft); max-width: 30em; }
@media (max-width: 600px) { .platforms { grid-template-columns: 1fr; gap: var(--s-5); } }

/* 카메라 */
.cameras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.cameras .lead { margin-top: var(--s-4); }
.cameras .fine { margin-top: var(--s-4); max-width: 36em; }
.cameras .text-link { margin-top: var(--s-5); }
.chips-box { background: var(--surface); border-radius: var(--radius); padding: var(--s-6); }
.chips-box .label + .chips { margin-top: var(--s-3); }
.chips + .label { margin-top: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--surface-raised); color: var(--text); font-size: var(--ui); font-weight: 600; }
@media (max-width: 900px) { .cameras { grid-template-columns: 1fr; gap: var(--s-6); } }

/* 개인정보 띠 */
.night-band { color: var(--text); position: relative; overflow: hidden; padding: var(--s-9) 0; text-align: center; background: var(--ink-950); border-top: 1px solid var(--line); }
.night-inner { position: relative; max-width: var(--wrap); }
.night-inner > svg { width: 48px; height: 48px; color: var(--accent); margin: 0 auto var(--s-5);  }
.night-band p { margin: var(--s-4) auto 0; font-size: var(--lead); line-height: 1.6; color: var(--text-soft); max-width: 34em; }
.night-band .night-note { margin-top: var(--s-3); font-size: var(--ui); }
.night-note a { color: var(--text-faint); text-decoration-color: var(--line); }
.night-note a:hover { color: var(--text); }
.night-band .btn { margin-top: var(--s-6); }

/* 마무리: 새벽 */
.dawn {
  position: relative; overflow: hidden; padding: var(--s-10) 0 var(--s-8);
  background: var(--surface);
}
.dawn .sky { bottom: 45%; opacity: .25; }
.closing { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing img { border-radius: 22px; box-shadow: var(--shadow); }
.closing h2 { margin-top: var(--s-6); max-width: 14em; }
.closing .store-status { margin-top: var(--s-4); }
.closing .btn-store { margin-top: var(--s-5); }
.notice { margin-top: var(--s-9); max-width: 62ch; font-size: var(--label); line-height: 1.7; color: var(--text-soft); }
.notice strong { color: var(--text); margin-right: var(--s-1); }

/* ── 문서(개인정보·약관·지원) ── */
.doc { max-width: 760px; padding-top: var(--s-8); padding-bottom: var(--s-9); }
.doc h1 { font-size: var(--display-l); line-height: 1.22; }
.doc .meta { margin-top: var(--s-3); font-size: var(--label); color: var(--text-faint); }
.doc .intro { margin-top: var(--s-5); font-size: var(--lead); line-height: 1.6; color: var(--text-soft); }
.toc { margin-top: var(--s-6); padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); border-radius: 16px; background: var(--surface); }
.toc ol { list-style: decimal; padding-left: var(--s-4); columns: 2; column-gap: var(--s-7); font-size: var(--ui); }
.toc li { break-inside: avoid; padding: var(--s-1) 0; color: var(--text-faint); }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.doc section { margin-top: var(--s-7); }
.doc h2 { font-size: var(--title); line-height: 1.35; font-weight: 700; margin-top: var(--s-8); }
.doc section > h2 { margin-top: 0; }
.doc section p, .doc section ul { margin-top: var(--s-3); }
.doc strong { color: var(--text); }
.doc section ul { list-style: disc; padding-left: 1.3em; display: grid; gap: var(--s-2); }
.doc li::marker { color: var(--text-faint); }
.doc > .fine { margin-top: var(--s-8); }

.faqs { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-5) 40px var(--s-5) 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: var(--s-2); top: 50%; width: 9px; height: 9px; margin-top: -8px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: rotate(45deg); transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding-bottom: var(--s-5); color: var(--text-soft); }
.contact { margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--radius); background: var(--surface); }
.contact h2 { margin-top: 0; }
.contact p { margin-top: var(--s-2); color: var(--text-soft); }
.contact .btn { margin-top: var(--s-5); white-space: normal; overflow-wrap: anywhere; }

.notfound section + section { margin-top: var(--s-7); }
.notfound h1 { font-size: var(--display-l); }
.notfound p { margin-top: var(--s-2); color: var(--text-soft); }
.notfound .text-link { margin-top: var(--s-3); }

/* ── 바닥글 ── */
.site-footer { background: var(--ink-950); color: var(--text-faint); padding: var(--s-8) 0 var(--s-7); font-size: var(--ui); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6) var(--s-7); }
.foot-brand p { margin-top: var(--s-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: flex-end; align-content: start; }
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .brand { color: var(--text); }
.foot-langs { display: flex; gap: var(--s-4); grid-column: 1 / -1; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.foot-langs a[aria-current] { color: var(--accent); }
.foot .fine { grid-column: 1 / -1; }
@media (max-width: 600px) { .foot { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after, .site-header { transition: none; }
}

/* ── 살아 있는 밤 모드 화면 ──
   앱의 밤 모드를 그대로 옮긴 화면: 지금 시각, 방마다 천천히 움직이는 소리 막대, 가끔 한 방이 잠깐 뒤척임.
   크기는 휴대폰 틀 너비(cqw)에 맞춰 히어로와 기능 소개에서 같은 비율로 보입니다. */
.live-night { container-type: inline-size; }
.live-night .nm {
  aspect-ratio: 660 / 1434; background: var(--screen); border-radius: 10% / 4.6%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8cqw; color: var(--sound-muted); font-family: var(--font-body);
}
.nm-clock { font-size: 15cqw; font-weight: 200; line-height: 1; color: var(--clock); text-align: center; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm-rows { margin-top: 9cqw; display: grid; gap: 4.2cqw; }
.nm-rows li { display: grid; grid-template-columns: 4.6cqw 25cqw 1fr; align-items: center; gap: 2.6cqw; font-size: 3.9cqw; color: var(--sound-label); }
.nm-rows svg { width: 4.6cqw; height: 4.6cqw; color: var(--sound-muted); stroke-width: 2; }
.nm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 400ms ease; }
.nm-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1cqw; height: 2.4cqw; }
.nm-meter b { border-radius: 0.6cqw; background: var(--meter); transition: background-color 140ms linear; }
.nm-meter b.on:nth-child(-n+3) { background: var(--green); }
.nm-meter b.on:nth-child(4) { background: var(--yellow); }
.nm-meter b.on:nth-child(n+5) { background: var(--orange); }
.nm-rows li.stir .nm-name { color: var(--star); }
.nm-rows li.stir svg { color: var(--accent); }
.nm-foot { margin-top: 11cqw; font-size: 2.9cqw; line-height: 1.5; text-align: center; color: var(--sound-muted); }


.night-feature .sky, .night-band .sky { opacity: .28; }
.section-first .feat-split { border-top: 1px solid var(--line); padding-top: var(--s-7); }
.feat-split .phone { width: min(216px, 72%); padding: 8px; }
.feat-wide { padding-top: var(--s-7); border-top: 1px solid var(--line); }
.feat-col { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.platforms > div { padding-block: var(--s-4); border-top: 1px solid var(--line); }
.chips-box { background: none; border-block: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.chips li { background: var(--surface); }
.doc { padding-top: clamp(48px, 7vw, 96px); }
.doc section { border-top: 1px solid var(--line); padding-top: var(--s-5); }
a:active, summary:active { opacity: .78; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.night-band :focus-visible, .site-footer :focus-visible { outline-color: var(--moon); }

.night-band h2.display { font-size: clamp(38px, 5.2vw, 76px); }

/* The tablet wakes first, then the listening screen settles beside it. */
@media (prefers-reduced-motion: no-preference) {
  :root { --motion-settle: cubic-bezier(.16, 1, .3, 1); }

  .hero-moon {
    animation: crescent-descent 1850ms cubic-bezier(.22, .55, .25, 1) 180ms backwards;
  }
  .hero > .sky i:nth-child(odd)::before {

    animation: first-light 840ms ease-in-out var(--first-light, calc(.6s + var(--d) * .3)) backwards,
               starlight calc(3.6s + var(--d)) ease-in-out calc(var(--first-light, calc(.6s + var(--d) * .3)) + 840ms) infinite;
  }
  .hero > .sky i:nth-child(5) { --first-light: .32s; }
  .hero > .sky i:nth-child(3) { --first-light: .62s; }
  .hero > .sky i:first-child { --first-light: .92s; }
  .page-hidden .hero-moon, .hero > .sky.paused i::before, .page-hidden .hero > .sky i::before { animation-play-state: paused; }

  @keyframes crescent-descent {
    from { opacity: .55; transform: translate(-115%, -62%) rotate(-22deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes first-light {
    from { opacity: .25; transform: scale(.65); }
    50% { opacity: 1; transform: scale(2.25); }
    to { opacity: .55; transform: scale(.8); }
  }
  @keyframes starlight {
    0%, 100% { opacity: .55; transform: scale(.8); }
    55% { opacity: 1; transform: scale(1.65); }
  }
  .hero-media .preview-monitor {
    animation: monitor-wakes 580ms ease-out both;
  }
  .hero-media .phone {
    animation: bedside-arrival 640ms var(--motion-settle) 140ms both;
  }
  .night-media .awake .nm-clock {
    animation: monitor-wakes 500ms ease-out;
  }
  .lang[open] ul { animation: menu-opens 160ms var(--motion-settle); }
  .faq[open] > p { animation: answer-opens 180ms ease-out; }
  .cta .btn-light svg, .cta .btn-ghost svg {
    transition: transform 140ms var(--motion-settle);
  }
  .cta .btn:focus-visible svg:last-child { transform: translateX(3px); }
  @media (hover: hover) {
    .cta .btn:hover svg:last-child { transform: translateX(3px); }
  }
  .btn:active { transform: scale(.98); }

  @keyframes moonlight-arrives {
    from { opacity: .42; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes monitor-wakes {
    from { opacity: .42; }
    to { opacity: 1; }
  }
  @keyframes bedside-arrival {
    from { opacity: .72; transform: translate(-8%, 7%) rotate(-3deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes menu-opens {
    from { opacity: .65; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes answer-opens {
    from { opacity: .65; }
    to { opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.hero-preview { min-width: 0; }
.hero-preview .tablet { display: grid; }
.hero-preview .tablet img { grid-area: 1 / 1; }
.hero-preview .preview-night { opacity: 0; visibility: hidden; animation: none; }
.hero-preview:has(input[value="night"]:checked) .preview-night { visibility: visible; opacity: 1; }
.hero-preview:has(input[value="night"]:checked) .preview-monitor { visibility: hidden; }

.preview-picker {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: fit-content; max-width: 100%; min-width: 0; margin: 12px auto 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 32px; background: var(--ink-950);
}
.preview-picker legend, .preview-picker input {
  position: absolute; inline-size: 1px; block-size: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.preview-picker::before {
  content: ''; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px);
  border-radius: inherit; background: var(--surface-raised); pointer-events: none;
}
.preview-picker:has(input[value="night"]:checked)::before { transform: translateX(100%); }
.preview-picker label { position: relative; cursor: pointer; }
.preview-picker span {
  display: grid; place-items: center; min-height: 44px; padding-inline: 16px;
  font-size: var(--ui); color: var(--text-faint); border-radius: 24px;
}
.preview-picker input:checked + span { color: var(--moon); }
.preview-picker label:has(input:focus-visible) { border-radius: 24px; outline: 2px solid var(--moon); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .preview-picker::before { transition: transform 240ms var(--motion-settle); }
  .hero-preview .preview-night { transition: opacity 320ms ease, visibility 0s 320ms; }
  .hero-preview:has(input[value="night"]:checked) .preview-night { transition-delay: 0s; }
  .hero-preview:has(input[value="night"]:checked) .preview-monitor { transition: visibility 0s 320ms; }
}
@media (max-width: 760px) {
  .hero-preview { width: min(100%, 520px); justify-self: center; }
}

/* Each feature display wakes once as the reader reaches it. */
.night-media { position: relative; isolation: isolate; }
.night-media::before {
  content: ''; position: absolute; z-index: -1; inset: -6% -3%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--moon-haze), transparent 67%);
  opacity: .65;
}
@media (prefers-reduced-motion: no-preference) {
  .js .feat-media .wake { transition: transform 620ms var(--motion-settle); }
  .js .feat-media .wake img { transition: opacity 540ms ease-out; }
  .js .feat-media .wake:not(.awake) { transform: translateY(20px); }
  .js .feat-media .wake:not(.awake) img { opacity: .46; }

  .js .night-media::before {
    transition: transform 850ms var(--motion-settle), opacity 700ms ease-out;
  }
  .js .night-media:has(.wake:not(.awake))::before {
    transform: scale(.72); opacity: .08;
  }
}


.scene-feature { background: var(--surface); }
.scene-feature .fine { color: var(--text-faint); }
.camera-setup { margin-top: var(--s-9); }
@media (max-width: 760px) {
  .hero-moon { top: 8px; right: var(--gutter); }
  .hero-grid { padding-top: 56px; }
}

/* Keep the masthead as a landmark while the next page settles into place. */
@view-transition { navigation: auto; }

.site-header { view-transition-name: masthead; }
.nav a[aria-current="page"],
body:has(#features:target) .nav a[href$="#features"],
body:has(#cameras:target) .nav a[href$="#cameras"] {
  text-decoration: underline;
  text-decoration-color: var(--moon);
  text-underline-offset: 6px;
}
main section:target h2 {
  text-decoration: underline;
  text-decoration-color: var(--moon);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
::view-transition-group(masthead) { animation-duration: 0s; }
::view-transition-old(masthead) { display: none; }
::view-transition-new(masthead) { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-depart 140ms ease-out both; }
  ::view-transition-new(root) { animation: page-arrive 260ms cubic-bezier(.2,.7,.25,1) both; }
  @keyframes page-depart { to { opacity: 0; } }
  @keyframes page-arrive {
    from { opacity: .25; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ── 소개 영상 ── */
.intro-video figure { margin: 0; }
.intro-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink-950); box-shadow: var(--shadow); }
.intro-video figcaption { margin-top: var(--s-4); max-width: 48em; }
.intro-video figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
