/* 앨범북 홈페이지. 색은 Native 앱(연보라 바탕 #d8d8ff, 보라 #531b93)을 따른다. 라이트/다크/시스템. */
:root {
  --paper: #f5f4ff;
  --surface: #ffffff;
  --ink: #221a3a;
  --ink-soft: #5f5a7a;
  --line: #dcd9f5;
  --accent: #531b93;
  --accent-ink: #ffffff;
  --accent-soft: #e4e2ff;
  --hero: linear-gradient(180deg, #d8d8ff 0%, #f5f4ff 100%);
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15131f;
    --surface: #1e1b2c;
    --ink: #ecebf7;
    --ink-soft: #a9a5c4;
    --line: #322d4a;
    --accent: #bcabff;
    --accent-ink: #15131f;
    --accent-soft: #2b2545;
    --hero: linear-gradient(180deg, #2b2545 0%, #15131f 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15131f;
  --surface: #1e1b2c;
  --ink: #ecebf7;
  --ink-soft: #a9a5c4;
  --line: #322d4a;
  --accent: #bcabff;
  --accent-ink: #15131f;
  --accent-soft: #2b2545;
  --hero: linear-gradient(180deg, #2b2545 0%, #15131f 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.top, main, footer { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* 상단: 휴대폰 폭에서도 한 줄 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--accent); }
/* 언어 고르기: 좁은 화면에서는 줄어들어 한 줄을 지킨다 (아래쪽 언어 링크는 그대로 둔다) */
#lang { min-width: 0; max-width: 150px; height: 36px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: 18px; background-color: var(--surface); color: var(--ink); font: inherit; font-size: 14px; text-overflow: ellipsis; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
#lang:hover { border-color: var(--accent); }
#lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; }
#theme:hover { background: var(--accent-soft); color: var(--accent); }
#theme svg { width: 22px; height: 22px; display: none; }
:root:not([data-theme]) #theme .i-system,
:root[data-theme="light"] #theme .i-light,
:root[data-theme="dark"] #theme .i-dark { display: block; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin: 8px -20px 0; padding: 36px 20px 40px; background: var(--hero); text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.15; letter-spacing: -0.02em; }
.tagline { margin-top: 8px; font-size: 22px; font-weight: 600; color: var(--accent); }
.lead { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.store { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.store:hover { filter: brightness(1.12); }
.phone { justify-self: center; width: min(270px, 70vw); padding: 8px; border-radius: 34px; background: #1b1830; box-shadow: 0 18px 40px rgba(40, 20, 90, 0.28); }
.phone img { border-radius: 26px; }
/* 방문자 기기에 맞춘 첫 화면: Android 태블릿은 가로, iPhone·iPad 는 테두리가 그림에 들어 있다 */
.phone.wide { width: min(520px, 92vw); border-radius: 22px; }
.phone.wide img { border-radius: 14px; }
.device { justify-self: center; filter: drop-shadow(0 18px 28px rgba(40, 20, 90, 0.28)); }
.device.iphone { width: min(270px, 70vw); }
.device.ipad { width: min(520px, 92vw); }

.intro { max-width: 720px; margin: 40px auto 0; font-size: 18px; text-align: center; }

/* 기능 */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
.card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card h2 { font-size: 19px; color: var(--accent); }
.card ul { margin-top: 10px; }
.card li { position: relative; padding-left: 16px; margin: 6px 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; }

/* 앱 화면: 옆으로 넘겨 본다 */
.shots { margin-top: 44px; }
.shots h2 { font-size: 22px; text-align: center; }
.shots ul { display: flex; gap: 14px; margin: 18px -20px 0; padding: 4px 20px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: min(220px, 58vw); scroll-snap-align: start; }
.shots img { border: 1px solid var(--line); border-radius: 18px; }
/* 기기 탭: 좁은 화면에서는 탭 줄을 옆으로 민다. 가로 화면(iPad·펼친 Duo)은 넓게, 접은 Duo 는 펼친 것과 같은 축척, Watch 는 작게.
   기기 프레임을 입힌 그림(.bezel)은 바탕이 투명하므로 테두리선을 두르지 않는다 */
.tabs { display: flex; gap: 6px; margin: 16px -20px 0; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs::before, .tabs::after { content: ""; flex: 1 0 0; }
.tabs button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tabs button:hover { border-color: var(--accent); color: var(--accent); }
.tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.tabs button:focus-visible, .shots ul:focus-visible, .videos .tour:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots ul { align-items: center; --wide: min(560px, 84vw); }
.shots ul[hidden] { display: none; }
.shots li.wide { width: var(--wide); }
.shots li.duo-outer { width: calc(var(--wide) * 0.509); }
.shots li.bezel img { border: 0; border-radius: 0; }
.shots li.small { width: min(170px, 44vw); }
.shots li.fold-cover { width: calc(var(--wide) * 0.468); }
.shots li.fold-up { width: calc(var(--wide) * 0.868); }
/* 좌우 화살표: 줄 양옆에 세로로 긴 진보라색 반투명 막대 (소유자 2026-11-12: 옅게, 그라데이션으로) */
.strip { position: relative; }
.strip .go { position: absolute; top: 22px; bottom: 16px; z-index: 2; width: 56px; padding: 0; border: 0; background: none; color: #fff; font-size: 40px; font-weight: 700; line-height: 1; text-shadow: 0 0 3px rgba(40, 10, 90, 0.95), 0 0 8px rgba(40, 10, 90, 0.7); cursor: pointer; --g: rgba(83, 27, 147, 0.2); }
.strip .go[hidden] { display: none; }
/* 바깥쪽이 조금 진하고 안쪽으로 갈수록 사라진다 (소유자 2026-11-12: 그라데이션) */
.strip .go.prev { left: 0; border-radius: 14px 0 0 14px; background: linear-gradient(to right, var(--g), rgba(83, 27, 147, 0)); }
.strip .go.next { right: 0; border-radius: 0 14px 14px 0; background: linear-gradient(to left, var(--g), rgba(83, 27, 147, 0)); }
.strip .go:hover, .strip .go:focus-visible { --g: rgba(83, 27, 147, 0.38); }
/* 소개 영상: 기기 탭마다 하나씩, 가운데에 크게 */
.videos { margin-top: 44px; }
.videos h2 { font-size: 22px; text-align: center; }
.videos .tour { margin: 18px auto 0; }
.videos .tour[hidden] { display: none; }
.videos .tour.tall { width: min(340px, 78vw); }
.videos .tour.wide { width: min(760px, 100%); }
.videos video { display: block; width: 100%; height: auto; border-radius: 18px; background: #1c1c1e; }

.note { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); text-align: center; font-weight: 600; }
.note p + p { margin-top: 4px; font-weight: 400; color: var(--ink-soft); }

/* 하단 */
footer { margin-top: 48px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); text-align: center; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.links a, .languages a { display: inline-flex; align-items: center; min-height: 34px; }
.languages { margin-top: 12px; scroll-margin-top: 16px; }
.languages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.languages a { color: var(--ink-soft); }
.languages a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.copyright { margin-top: 16px; }

.notfound { display: grid; justify-items: center; gap: 16px; padding-top: 96px; padding-bottom: 48px; text-align: center; }
.notfound img { border-radius: 16px; }
.notfound h1 { font-size: 26px; }

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-left: 0; margin-right: 0; padding: 56px 48px; border-radius: 28px; text-align: left; }
  .hero h1 { font-size: 56px; }
  .tagline { font-size: 26px; }
  .stores { justify-content: flex-start; }
  /* 가로로 넓은 기기 그림(태블릿)은 글 아래에 둔다 — 옆에 두면 글 칸이 좁아진다 */
  .hero.stack { grid-template-columns: 1fr; text-align: center; }
  .hero.stack .stores { justify-content: center; }
  .hero.stack .phone.wide, .hero.stack .device.ipad { width: min(640px, 100%); }
  .shots ul { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
