/* SBB 소개·개인정보처리방침·이용약관 (10-21 18852·18854) — 앱 색(app/lib/app/theme.dart) 그대로 */
@font-face { font-family: 'SBB Sans'; src: url('/assets/fonts/pretendard-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SBB Sans'; src: url('/assets/fonts/pretendard-700.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'SBB Sans'; src: url('/assets/fonts/pretendard-800.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'SBB Pen'; src: url('/assets/fonts/nanumpen.woff') format('woff'); font-display: swap; }

:root {
  --cream: #F9F9F2;
  --sage: #E6EDE1;
  --coral: #F06A4E;
  --coral-soft: #FFE3DB;
  --navy: #152D3A;
  --gray: #6B7480;
  --line: #E9E9E2;
  --card: #FFFFFF;
  --shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'SBB Sans', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 윗줄 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(249, 249, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.top .brand img { height: 40px; width: auto; } /* 10-31 로고 = 앱 아이콘 시안 A(공 포함) */
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 700; }
.top nav a { text-decoration: none; color: var(--gray); }
.top nav a:hover { color: var(--navy); }

/* 첫 화면 */
.hero { background: url('/assets/header_art.jpg') center top / cover no-repeat; border-bottom: 1px solid var(--line); }
/* 11-06 22980 첫 화면이 짧아 아래 칸이 살짝 삐져나옴 → 윗줄(61px) 뺀 화면 높이만큼 채우고 내용은 가운데 */
.hero { min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.pen { font-family: 'SBB Pen', cursive; font-size: 34px; color: var(--coral); margin: 0 0 4px; line-height: 1.2; }
.hero h1 { font-size: 52px; line-height: 1.18; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 18px; }
.hero h1 b { color: var(--coral); }
.lead { font-size: 19px; color: #3B4B55; margin: 0 0 28px; max-width: 30em; }
/* 스토어 배지 = 구글·애플 공식 한국어 배지 그대로(고치지 말 것). 둘레 여백은 배지 높이의 1/4 이상. 출시 전이라 아직 링크 없음 */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge img { height: 48px; width: auto; }
.soon { margin: 12px 0 0; font-size: 14px; color: var(--gray); }
.hero-phone { justify-self: center; }

/* 폰 화면 */
.phone { width: 280px; border-radius: 34px; background: #0E1E27; padding: 10px; box-shadow: 0 24px 48px rgba(21, 45, 58, .22); }
.phone img { width: 100%; height: auto; border-radius: 26px; background: var(--cream); }
.hero .phone { width: 300px; }

/* 기능 */
section.block { padding: 80px 0; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--coral); letter-spacing: .5px; margin: 0 0 6px; }
h2 { font-size: 36px; line-height: 1.25; font-weight: 800; letter-spacing: -1px; margin: 0 0 14px; }
.block-intro { font-size: 18px; color: var(--gray); margin: 0 0 48px; }
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.feature:nth-of-type(even) { grid-template-columns: 1fr 300px; }
.feature:nth-of-type(even) .phone { order: 2; }
.feature h3 { font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -.6px; margin: 0 0 12px; }
.feature p { font-size: 17px; color: #3B4B55; margin: 0 0 12px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; margin: 6px 0; color: #3B4B55; }
.feature li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* 사용법(11-06 22957 가운데에 가이드 영상 → 22976 스크롤하면 멈춰서 인스타 스토리처럼 그림 4장 → 마지막에 영상).
   칸 높이 = 장 수 × 70% 화면, 안쪽 무대는 윗줄(61px) 밑에 붙어 멈춤. 몇 번째 장인지는 site.js 가 스크롤 위치로 정함 */
.guide { background: var(--sage); }
.guide-track { position: relative; height: calc(5 * 60vh + 100vh); }   /* 22985 그림 4장 + 영상, 한 장에 60% 화면만큼 스크롤 */
.guide-stage { position: sticky; top: 61px; height: calc(100vh - 61px); height: calc(100svh - 61px); display: flex; align-items: center; overflow: hidden; }
.guide-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.guide-copy h2 { margin-bottom: 28px; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; }   /* 장 글은 한 칸에 겹쳐 두고(높이 = 가장 긴 글) 지금 장만 보임 */
.guide-steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.guide-steps li.on { opacity: 1; transform: none; }
.guide-steps span { display: inline-block; font-size: 14px; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.guide-steps b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.6px; line-height: 1.3; margin-bottom: 8px; }
.guide-steps p { margin: 0; font-size: 18px; color: var(--gray); }
.guide-card { position: relative; height: min(76vh, 740px); height: min(76svh, 740px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #0E1E27; box-shadow: 0 24px 48px rgba(21, 45, 58, .22); }
.gslide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; background: #0E1E27; }
.gslide.on { opacity: 1; z-index: 1; }
.story-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.story-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: #fff; }
/* 스크립트가 없으면(또는 막혀 있으면) 멈춤 없이 영상만 */
html:not(.js) .guide-track { height: auto; }
html:not(.js) .guide-stage { position: static; height: auto; padding: 64px 0; }
html:not(.js) .guide-steps li:not(:last-child), html:not(.js) .guide-card img, html:not(.js) .story-bars { display: none; }
html:not(.js) .guide-steps li:last-child { opacity: 1; transform: none; }
html:not(.js) .gvid { position: static; opacity: 1; }

/* 앱 받기 */
.download { text-align: center; }
.download .stores { justify-content: center; }
.download .block-intro { margin-bottom: 28px; }

/* 아래 */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--gray); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-weight: 700; color: var(--navy); }
footer .links a { text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer p { margin: 2px 0; }
/* 11-05 22951 본문의 정보 이용 칸은 뺌(다른 앱 소개 페이지처럼). 구글 로그인 심사(홈페이지에 사용자 정보를 왜 쓰는지)는 아래 한 줄로 */
footer .data-note { margin: 0 0 10px; max-width: 760px; }
footer .data-note a { color: var(--navy); font-weight: 700; }

/* 문서(처리방침·약관) */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin: 0 0 6px; }
.doc .meta { color: var(--gray); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.4px; scroll-margin-top: 76px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: #2E3F49; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.toc { background: var(--card); border-radius: 18px; padding: 18px 24px; box-shadow: var(--shadow); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; color: var(--navy); }
.toc a:hover { color: var(--coral); }
.note { background: var(--coral-soft); border-radius: 14px; padding: 14px 18px; margin: 14px 0; }
.table { width: 100%; overflow-x: auto; margin: 10px 0 16px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: #F1F3EC; font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* 펼친 폴더블(갤럭시 폴드·아이폰 듀오 안쪽 화면)·태블릿 = 641~1023px (18881): 두 칸 배치는 그대로 두고 폰 그림·글자만 줄인다.
   기기별 CSS 너비는 확인 못 해서 기기 숫자에 맞추지 않고 344~1280px 전 구간이 자연스럽게 이어지게 했다 */
@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: 1fr minmax(190px, 34%); gap: 28px; padding-top: 44px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 3.4vw + 12px, 48px); }
  .lead { font-size: 17px; }
  .hero .phone { width: 100%; max-width: 270px; }
  .feature { grid-template-columns: minmax(180px, 30%) 1fr; gap: 36px; padding: 28px 0; }
  .feature:nth-of-type(even) { grid-template-columns: 1fr minmax(180px, 30%); }
  .feature .phone { width: 100%; max-width: 260px; justify-self: center; }
  h2 { font-size: clamp(28px, 1.6vw + 18px, 36px); }
  .feature h3 { font-size: clamp(22px, 1vw + 16px, 28px); }
  section.block { padding: 64px 0; }
  .guide-grid { gap: 32px; }
  .guide-steps b { font-size: 24px; }
}
/* 접은 폴더블 바깥 화면·일반 폰 = 640px 이하: 한 줄로 */
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 44px; }
  .hero h1 { font-size: 38px; }
  .hero .phone { width: 260px; }
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .phone { order: 0; }
  .feature .phone { width: 250px; }
  /* 사용법: 글 위·그림 아래 한 줄로, 그림은 남는 높이에 맞춤 */
  .guide-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .guide-copy h2 { font-size: 24px; margin-bottom: 10px; }
  .guide-copy .eyebrow { margin-bottom: 2px; }
  .guide-steps { width: 100%; }
  .guide-steps span { font-size: 12px; padding: 3px 10px; margin-bottom: 6px; }
  .guide-steps b { font-size: 19px; margin-bottom: 2px; }
  .guide-steps p { font-size: 14px; }
  .guide-card { height: calc(100vh - 61px - 250px); height: calc(100svh - 61px - 250px); max-height: 600px; border-radius: 20px; }
  h2 { font-size: 30px; }
  .feature h3 { font-size: 24px; }
  section.block { padding: 60px 0; }
  .toc ol { columns: 1; }
}
/* 칸이 많은 표(.stack)는 늘, 나머지 표는 폰에서 줄마다 카드로 (칸이 좁아 글자가 한 자씩 끊기지 않게) */
.doc table.stack, .doc table.stack tbody, .doc table.stack tr { display: block; width: 100%; }
.doc table.stack thead { display: none; }
.doc table.stack { background: none; border-radius: 0; }
.doc table.stack tr { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 6px 20px; margin: 0 0 12px; }
.doc table.stack td { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.doc table.stack td:last-child { border-bottom: 0; }
.doc table.stack td::before { content: attr(data-label); font-weight: 800; color: var(--coral); }
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td, .doc table.stack td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc table { background: none; border-radius: 0; }
  .doc tr { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 6px 16px; margin: 0 0 12px; }
  .doc td { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc td:last-child { border-bottom: 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 800; color: var(--coral); margin: 0 0 2px; }
}
@media (max-width: 520px) {
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
  .hero h1 { font-size: 32px; }
  .pen { font-size: 28px; }
  .doc h1 { font-size: 30px; }
  table { font-size: 14px; }
  th, td { padding: 10px; }
}
