/* NOSLEEP-SITE-03: 노슬립 컴퍼니 제품 사이트 — refero 「Apple」 스타일 규칙(색·글자 단계·간격·모서리·단추)을 그대로,
   구성은 시안 C(큰 제목·넓은 여백·캡처를 제품 사진처럼). 노랑은 로고에만. 가져온 규칙 표는 결과물/NOSLEEP-SITE-03/보고서.md */
:root {
  --white: #ffffff;
  --frost: #f5f5f7;     /* 구역 바탕(번갈아) */
  --carbon: #1d1d1f;    /* 글 */
  --ash: #707070;       /* 보조 글 */
  --hair: #d2d2d7;      /* 가는 줄·입력 테두리 */
  --blue: #0071e3;      /* 채운 단추·선택 상태에만 */
  --link: #0066cc;      /* 글 속 링크 */
  --shadow: 3px 5px 30px rgba(0, 0, 0, 0.22);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --sec: 128px;         /* 구역 위아래 여백(64 × 2) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 52px; }
body { margin: 0; background: var(--white); color: var(--carbon); font: 400 17px/1.47 var(--font); letter-spacing: -0.016em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 8px; z-index: 20; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리 — 44px, 반투명 흰 바탕, 가는 아래 줄, 12px 링크 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.nav-in { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--carbon); font-size: 14px; font-weight: 600; letter-spacing: -0.016em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { color: var(--carbon); font-size: 12px; letter-spacing: -0.01em; opacity: 0.88; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav nav .nav-go { background: var(--blue); color: #fff; opacity: 1; padding: 4px 11px; border-radius: 980px; }

/* 구역 */
.sec { padding: var(--sec) 0; overflow: hidden; }
.sec.gray { background: var(--frost); }
.text { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.text.narrow { max-width: 692px; }
.center { text-align: center; }
h1, h2, .tagline, .body, .note, .three p { text-wrap: balance; }
.eyebrow { margin: 0 0 8px; font-size: 21px; line-height: 1.24; font-weight: 600; color: var(--ash); letter-spacing: -0.005em; }
h1 { margin: 0; font-size: 56px; line-height: 1.07; font-weight: 600; letter-spacing: 0.011em; }
h2 { margin: 0; font-size: 40px; line-height: 1.14; font-weight: 600; letter-spacing: 0.011em; }
h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.24; font-weight: 600; letter-spacing: -0.005em; }
.tagline { margin: 20px auto 0; max-width: 640px; font-size: 21px; line-height: 1.38; font-weight: 400; letter-spacing: -0.005em; color: var(--carbon); }
.body { margin: 16px auto 0; max-width: 640px; color: var(--ash); }
.note { margin: 40px 22px 0; font-size: 14px; line-height: 1.43; color: var(--ash); }
.text.center .note, p.note.center { text-align: center; }
h1, h2, .tagline, .body, .note, .three p { text-wrap: balance; }

/* ① 첫 화면 — 가운데 제목·소개·신청칸, 아래에 화면 폭 가득 사무실 */
.hero { padding-top: 88px; padding-bottom: 104px; }
.hero h1 { margin-top: 4px; }
.hero .tagline { margin-top: 24px; }
.hero .join { margin-top: 40px; }
.soon { margin: 20px 0 0; font-size: 12px; line-height: 1.33; color: var(--ash); }
.bleed { margin-top: 72px; }
.bleed img { width: 100%; }
.stage { max-width: 1244px; margin: 64px auto 0; padding: 0 22px; }
.stage img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }

/* ② 세 가지 */
.three { max-width: 980px; margin: 64px auto 0; padding: 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; text-align: center; }
.three h3 { font-size: 28px; line-height: 1.18; letter-spacing: 0.007em; margin-bottom: 12px; }
.three p { margin: 0; color: var(--ash); }

/* ③ 일하는 방식 */
.flow { list-style: none; margin: 32px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; font-size: 17px; font-weight: 600; }
.flow li { display: flex; align-items: center; }
.flow li + li::before { content: ""; width: 7px; height: 7px; margin: 0 18px; border-top: 1.5px solid var(--ash); border-right: 1.5px solid var(--ash); transform: rotate(45deg); }
.shot { max-width: 1040px; margin: 64px auto 0; padding: 0 22px; }
.shot img { border-radius: 8px; box-shadow: var(--shadow); }
.feats { max-width: 1040px; margin: 64px auto 0; padding: 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.feats h3 { font-size: 17px; line-height: 1.47; letter-spacing: -0.016em; margin-bottom: 4px; }
.feats p { margin: 0; color: var(--ash); }

/* ④ 메신저 — 폰 세 장을 회색 무대 위 정물처럼 */
.phones { max-width: 1040px; margin: 64px auto 0; padding: 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.phones img { border-radius: 8px; box-shadow: var(--shadow); }
.phones figcaption { margin-top: 16px; text-align: center; font-size: 12px; line-height: 1.33; color: var(--ash); }
.pair { max-width: 980px; margin: 72px auto 0; padding: 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.pair p { margin: 0 0 16px; color: var(--ash); }
.pair p b { color: var(--carbon); font-weight: 600; }
.pair .note { margin: 24px 0 0; }
.stickers { margin-top: 24px; max-width: 490px; }
.stickers img { border-radius: 8px; }

/* ⑦ 공개 도구 */
.tools { list-style: none; max-width: 692px; margin: 56px auto 0; padding: 0 22px; }
.tools li { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--hair); }
.tools li:last-child { border-bottom: 1px solid var(--hair); }
.tools b { font-weight: 600; }
.tools span { color: var(--ash); text-align: right; }

/* ⑨ 자주 묻는 질문 */
.faq { max-width: 692px; margin: 48px auto 0; padding: 0 22px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--carbon); border-bottom: 1.5px solid var(--carbon); transform: translateY(-3px) rotate(45deg); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: -4px 0 24px; color: var(--ash); }

/* 신청칸 — 이메일 한 줄 + 채운 파랑 단추, 동의는 누를 때 펼침 */
.join { max-width: 460px; margin: 40px auto 0; text-align: left; }
.join-title { margin: 0 0 12px; text-align: center; font-size: 14px; line-height: 1.43; color: var(--ash); }
.join-title b { color: var(--carbon); font-weight: 600; }
.join-row { display: flex; gap: 12px; }
.join-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 8px; background: var(--frost); color: var(--carbon); font: inherit; font-size: 17px; letter-spacing: -0.016em; }
.gray .join-row input { background: var(--white); }
.join-row input::placeholder { color: #8a8a8e; }
.join-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.join-row button { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 980px; background: var(--blue); color: #fff; font: inherit; font-size: 17px; letter-spacing: -0.016em; cursor: pointer; }
.join-row button:hover { background: #0077ed; }
.join-row button:disabled { opacity: 0.5; }
.agree { margin: 16px 0 0; padding: 16px 20px; border: 1px solid var(--hair); border-radius: 8px; font-size: 14px; line-height: 1.43; }
.agree label { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.agree input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.more { margin: 0 0 4px 26px; font-size: 12px; }
.more summary { cursor: pointer; color: var(--link); }
.more-body { color: var(--ash); font-size: 12px; line-height: 1.5; }
.more-body ul { padding-left: 16px; }
.join-foot { margin: 10px 0 0; font-size: 12px; line-height: 1.33; color: var(--ash); }
.join-msg { margin: 10px 0 0; min-height: 1px; text-align: center; font-size: 14px; }
.join-msg:empty { margin: 0; }
.join-msg.bad { color: #d70015; }
.join.done .join-msg { color: #1d7f3e; }
.hp { position: absolute; left: -9999px; }

/* 개인정보 처리방침(privacy.html) — 같은 규칙, 좁은 글 폭 692 */
.legal { max-width: 692px; margin: 0 auto; padding: 88px 22px var(--sec); }
.legal-head { text-align: center; margin-bottom: 72px; }
.legal section { margin-top: 48px; }
.legal h2 { font-size: 28px; line-height: 1.18; letter-spacing: 0.007em; margin-bottom: 16px; }
.legal h3 { font-size: 17px; line-height: 1.47; letter-spacing: -0.016em; margin: 28px 0 4px; } /* SITE-06: 국외 이전 ①②③ */
.legal td a { text-decoration: underline; text-underline-offset: 2px; } /* SITE-06: 표 안 링크는 밑줄(색만으로 구분하지 않게 — 라이트하우스 link-in-text-block) */
.legal p, .legal li { color: var(--carbon); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal li b, .legal th { font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; line-height: 1.43; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 0; border-top: 1px solid var(--hair); }
.legal tr:last-child th, .legal tr:last-child td { border-bottom: 1px solid var(--hair); }
.legal th { width: 30%; padding-right: 16px; }
.legal td { color: var(--ash); }
.legal-date { margin-top: 24px !important; font-size: 14px; color: var(--ash) !important; }
.join-policy { margin: 8px 0 0; font-size: 12px; line-height: 1.33; }

/* 꼬리 */
.foot { background: var(--frost); border-top: 1px solid var(--hair); }
.foot-in { max-width: 980px; margin: 0 auto; padding: 20px 22px 32px; font-size: 12px; line-height: 1.33; color: var(--ash); }
.foot-in p { margin: 6px 0; }

/* 스크롤하며 살짝 떠오르기 — site.js가 html.rv-on을 붙일 때만(움직임 줄이기면 안 붙인다) */
.rv-on .rv { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv-on .rv.in { opacity: 1; transform: none; }

/* 폰 — Apple 기준 734px 아래 */
@media (max-width: 734px) {
  :root { --sec: 80px; }
  .nav nav a:not(.nav-go) { display: none; }
  .eyebrow { font-size: 17px; }
  h1 { font-size: 32px; line-height: 1.13; letter-spacing: 0.007em; }
  h2 { font-size: 28px; line-height: 1.18; letter-spacing: 0.007em; }
  .tagline { font-size: 19px; line-height: 1.42; }
  .tagline br { display: none; }
  .hero { padding-top: 56px; }
  .stage { margin-top: 48px; }
  .bleed { margin-top: 48px; }
  .three, .feats, .pair { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .three h3 { font-size: 24px; }
  .shot, .phones { margin-top: 40px; }
  .phones { grid-template-columns: repeat(3, 72%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; }
  .phones figure { scroll-snap-align: center; }
  .tools li { flex-direction: column; gap: 4px; }
  .tools span { text-align: left; }
  .legal { padding-top: 56px; }
  .legal-head { margin-bottom: 48px; }
  .legal h2 { font-size: 24px; }
  .legal th { width: 36%; }
  .join-row { flex-direction: column; }
  .join-row input { flex: none; width: 100%; }
  .join-row button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
