:root {
  --bg: #fff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 48px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 600; letter-spacing: -.02em; font-size: 19px; }
.nav nav { display: flex; gap: 24px; font-size: 13px; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }

/* Hero (404 페이지) */
.hero {
  min-height: calc(100vh - 48px); min-height: calc(100svh - 48px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px 24px;
}
.tagline {
  margin: 24px 0 0;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600; letter-spacing: -.02em;
}
.sub { margin: 16px 0 0; max-width: 520px; font-size: clamp(17px, 2vw, 21px); color: var(--muted); }
.btn {
  margin-top: 32px; display: inline-block;
  background: var(--fg); color: #fff;
  padding: 12px 24px; border-radius: 980px; font-size: 17px;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }

.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
h2 { margin: 0; font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.lead { margin: 24px 0 0; max-width: 640px; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); }
h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }

.dark { background: #000; color: #f5f5f7; }
.dark .eyebrow, .dark .lead { color: #a1a1a6; }
footer { padding: 24px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot .logo { font-size: 15px; color: var(--fg); }

@media (max-width: 734px) {
  .foot-links { order: 3; width: 100%; }
  .nav nav { gap: 16px; }
}
a:focus-visible, .btn:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }

/* Footer links */
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--fg); }

/* Document pages (Pip, privacy) */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); word-break: keep-all; overflow-wrap: anywhere; }
.doc h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.doc .meta { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.doc .intro { margin: 28px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--fg); }
.doc h2 { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 24px; line-height: 1.25; letter-spacing: -.02em; }
.doc h3 { margin: 28px 0 0; font-size: 18px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc a:not(.btn) { color: #0066cc; }
.doc a:not(.btn):hover { text-decoration: underline; }
.doc .summary { margin: 32px 0 0; padding: 24px 28px; background: var(--soft); border-radius: 20px; }
.doc .summary p { margin: 0; font-size: 17px; }
.doc .summary p + p { margin-top: 8px; }
.doc .btn { color: #fff; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; flex: none; }

/* ───────── Product page (Pip) ───────── */
.pp { word-break: keep-all; overflow-wrap: anywhere; }
.pp-hero { padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; overflow: hidden; }
.pp-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.pp-name { margin: 20px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.pp-title { margin: 8px 0 0; font-size: clamp(40px, 7.5vw, 80px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.pp-sub { margin: 20px auto 0; max-width: 620px; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.45; color: var(--muted); }
.pp-cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pp-soon { display: inline-block; padding: 12px 24px; border-radius: 980px; background: var(--fg); color: #fff; font-size: 17px; }
.pp-more { font-size: 17px; color: #0066cc; }
.pp-more:hover { text-decoration: underline; }
.pp-small { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* 보드 모형: 앱의 갤러리 보기처럼 엇갈린 포스트잇 */
.board { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 980px; padding: 0 24px clamp(56px, 8vw, 96px);
  columns: 3 220px; column-gap: 16px; text-align: left; }
.sticky { break-inside: avoid; margin: 0 0 16px; padding: 18px 18px 14px; border-radius: 22px;
  background: var(--paper); box-shadow: 0 10px 24px rgba(0,0,0,.07); color: var(--fg); }
.sticky p { margin: 0; font-size: 16px; line-height: 1.5; }
.sticky .t { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.sticky .dim { color: var(--muted); }
.sticky .foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.sticky .cat::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-right: 6px; vertical-align: 1px; }
.sticky .meta { color: var(--label); font-variant-numeric: tabular-nums; }
.chk { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.6; }
.chk li { display: flex; gap: 8px; align-items: baseline; }
.chk li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.28); transform: translateY(2px); }
.chk li.done { color: var(--muted); text-decoration: line-through; }
.chk li.done::before { background: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lemon { --paper: #FFF3BC; --ink: #E2B000; --label: #8A6800; }
.peach { --paper: #FFE2CA; --ink: #F67E3B; --label: #B04A12; }
.rose { --paper: #FFDDE3; --ink: #EF5474; --label: #B8284A; }
.lavender { --paper: #E7E3FF; --ink: #8066F2; --label: #5B3FD6; }
.sky { --paper: #D8ECFF; --ink: #2A88F4; --label: #1764C4; }
.mint { --paper: #DAF5E5; --ink: #28AD6D; --label: #187A4A; }
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1deg); }

/* 기능 구역 */
.pp-sec { padding: clamp(80px, 11vw, 140px) 0; }
.pp-sec.soft { background: var(--soft); }
.pp-sec.dark { background: #000; color: #f5f5f7; }
.pp-sec.dark .lead, .pp-sec.dark .eyebrow, .pp-sec.dark .fine { color: #a1a1a6; }
.pp-sec .lead { max-width: 680px; }
.fine { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.chips { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 16px; border-radius: 980px; background: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pp-sec:not(.soft) .chips span { background: var(--soft); }
.learn { margin: 32px 0 0; padding: 24px 28px; border-radius: 22px; background: #fff; max-width: 680px; }
.learn strong { display: block; font-size: 19px; margin-bottom: 6px; }
.learn p { margin: 0; color: var(--muted); font-size: 17px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: var(--soft); border-radius: 24px; padding: 28px; }
.pp-sec.soft .tile { background: #fff; }
.pp-sec.dark .tile { background: #1d1d1f; }
.tile .k { display: inline-block; font-size: 13px; font-weight: 600; color: var(--label, var(--muted)); margin-bottom: 10px; }
.tile h3 { font-size: 21px; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.pp-sec.dark .tile p { color: #a1a1a6; }

/* Speak to Pip: 말 → 여러 장 */
.speak { margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 28px; align-items: center; }
.bubble { background: #1d1d1f; border-radius: 26px; padding: 26px 28px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: #f5f5f7; }
.bubble .wave { display: block; margin-bottom: 12px; font-size: 13px; color: #a1a1a6; letter-spacing: .02em; }
.arrow { font-size: 32px; color: #6e6e73; }
.speak .stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.speak .sticky { margin: 0; }

/* 검색 */
.search { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; }
.q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 18px; background: var(--soft); font-size: 17px; }
.q b { font-weight: 600; }
.q span { color: var(--muted); font-size: 15px; text-align: right; }
.pp-sec.soft .q { background: #fff; }

.pp-faq h3 { margin-top: 32px; }

@media (max-width: 734px) {
  .tiles { grid-template-columns: 1fr; margin-top: 40px; }
  .speak { grid-template-columns: 1fr; gap: 16px; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .speak .stack { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .board { columns: 2 150px; column-gap: 12px; padding-left: 16px; padding-right: 16px; }
  .sticky { padding: 14px 14px 12px; border-radius: 18px; margin-bottom: 12px; }
  .sticky p, .chk { font-size: 14px; }
  .tilt-l, .tilt-r { transform: none; }
}

/* ───────── Home ───────── */
.home { overflow-x: hidden; }
/* 홈은 글자를 끌어서 고를 수 없다. (링크는 그대로 누를 수 있다) */
.home { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.home img, .home svg { -webkit-user-drag: none; }
.home section { scroll-margin-top: 48px; }

/* 첫 화면: 흰 바탕에 크게 Hidden */
.h-hero { position: relative; min-height: calc(100vh - 48px); min-height: calc(100svh - 48px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 24px 112px; }
.h-hero-inner { position: relative; z-index: 2; will-change: transform, opacity; }
.h-mark { margin: 0; font-size: clamp(84px, 20vw, 220px); font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.h-line { margin: 28px 0 0; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.22; font-weight: 600; letter-spacing: -.025em; word-break: keep-all; }
.h-sub { margin: 18px auto 0; max-width: 520px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); word-break: keep-all; }
.h-links { margin-top: 36px; display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.h-contact { display: inline-block; padding: 9px 20px; border-radius: 980px; background: var(--fg); color: #fff; font-size: 15px; font-weight: 500; transition: opacity .2s, transform .2s; }
.h-contact:hover { opacity: .82; }
.h-contact:active { transform: scale(.97); }
.h-scroll { position: absolute; left: 50%; bottom: 32px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid var(--line); border-radius: 14px; }
.h-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: h-wheel 1.8s ease-in-out infinite; }
@keyframes h-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* 첫 화면 등장: 글자가 살짝 떠오르며 또렷해진다 */
.js .h-mark, .js .h-line, .js .h-sub, .js .h-hero .h-links { animation: h-rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.js .h-line { animation-delay: .18s; }
.js .h-sub { animation-delay: .3s; }
.js .h-hero .h-links { animation-delay: .42s; }
@keyframes h-rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* 구역 */
.h-sec { padding: clamp(96px, 13vw, 168px) 0; }
.h-sec h2 { word-break: keep-all; }

/* 스크롤 효과: 화면에 들어오면 떠오르며 나타난다 */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .float { opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)) scale(.96); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0s) + .2s); }
.js .float.in { opacity: 1; transform: rotate(var(--r, 0deg)); }

/* Pip 광고 */
.h-pip { background: var(--soft); }
.h-pip-card { margin-top: 20px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  background: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 72px); }
.h-pip-icon { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.h-pip-text h2 { margin-top: 22px; }
.h-pip-tag { margin: 10px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; word-break: keep-all; }
.h-pip-desc { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.h-pip-cta { margin-top: 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.h-more { font-size: 17px; color: #0066cc; }
.h-more:hover { text-decoration: underline; }
.h-soon { font-size: 14px; color: var(--muted); }
.h-pip-board { display: grid; gap: 14px; }
.h-pip-board .sticky { margin: 0; }
.h-pip-board .sticky:nth-child(1) { --r: -2deg; width: 78%; }
.h-pip-board .sticky:nth-child(2) { --r: 1.5deg; width: 70%; justify-self: end; margin-top: -10px; }
.h-pip-board .sticky:nth-child(3) { --r: -1deg; width: 74%; margin-left: 6%; margin-top: -8px; }
html:not(.js) .h-pip-board .sticky { transform: rotate(var(--r, 0deg)); }

/* About */
.h-about h2 { font-size: clamp(36px, 6vw, 64px); }
.h-story { margin-top: 40px; }
.h-story p { margin: 0 0 24px; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.7; color: #424245; word-break: keep-all; }
.h-story strong { color: var(--fg); }
.h-story .turn { margin-top: 56px; }
.h-close { margin: 80px 0 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.5; font-weight: 700; letter-spacing: -.02em; color: var(--fg); word-break: keep-all; }
.h-final { margin: 64px 0 0; word-break: keep-all; }
.h-final strong { display: block; font-size: clamp(48px, 8vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.h-final span { display: block; margin-top: 14px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -.015em; color: #424245; }
.h-sign { margin: 56px 0 0; display: flex; flex-direction: column; gap: 2px; }
.h-sign strong { font-size: 19px; }
.h-sign span { color: var(--muted); font-size: 15px; }


@media (max-width: 734px) {
  .h-pip-card { grid-template-columns: 1fr; border-radius: 26px; }
  .h-pip-board { margin-top: 8px; }
}

/* 동작 줄이기: 움직임 없이 바로 보인다 */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .float { opacity: 1; transform: none; transition: none; }
  .js .h-mark, .js .h-line, .js .h-sub, .js .h-hero .h-links { animation: none; }
  .h-scroll span { animation: none; }
}

/* 자주 묻는 질문: 질문을 누르면 답이 펼쳐진다 */
.pp-faq h2 { font-size: clamp(32px, 5vw, 48px); }
.faq-req { margin: 28px 0 0; padding: 20px 24px; border-radius: 18px; background: var(--soft); word-break: keep-all; }
.faq-req p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.faq-req p + p { margin-top: 6px; }
.faq-req strong { color: var(--fg); }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 2px; font-size: clamp(17px, 2vw, 19px); font-weight: 600; letter-spacing: -.01em; word-break: keep-all; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .35s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(var(--muted), var(--muted)) center / 14px 1.6px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.6px 14px no-repeat; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: #424245; }
.faq-item summary:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; border-radius: 8px; }
.faq-a { padding: 0 2px 24px; }
.faq-a p { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.65; color: var(--muted); word-break: keep-all; }
.faq-item[open] .faq-a { animation: faq-open .35s cubic-bezier(.2,.7,.2,1); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* 지원하는 브라우저에서는 높이도 부드럽게 열고 닫힌다 */
.faq-item::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2,.7,.2,1), content-visibility .35s allow-discrete; }
.faq-item[open]::details-content { height: auto; }
.faq-contact { margin-top: 56px; word-break: keep-all; }
.faq-contact h3 { font-size: 21px; margin: 0; }
.faq-contact p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.faq-contact .btn { margin-top: 20px; font-size: 15px; padding: 10px 20px; }
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-item::details-content { transition: none; }
  .faq-item summary::after { transition: none; }
}

/* Contact 메뉴 */
.h-contact-wrap { position: relative; display: inline-block; }
.h-menu { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 20; min-width: 248px; padding: 6px;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.08); text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(-6px) scale(.96); transform-origin: top center;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .22s; }
.h-contact-wrap.open .h-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%);
  transition: opacity .18s ease, transform .28s cubic-bezier(.2,.9,.25,1.15), visibility 0s; }
.h-menu a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--fg); transition: background .15s; }
.h-menu a:hover, .h-menu a:focus-visible { background: rgba(0,0,0,.05); outline: none; }
.h-menu a + a { margin-top: 2px; }
.h-menu svg { flex: none; color: var(--fg); }
.h-menu span { display: flex; flex-direction: column; line-height: 1.3; }
.h-menu b { font-size: 15px; font-weight: 600; }
.h-menu small { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .h-menu, .h-contact-wrap.open .h-menu { transition: opacity .01s, visibility 0s; transform: translateX(-50%); }
}
