/* 첫 페이지 모양 — 한국어·영어·일본어 첫 페이지가 같이 쓴다(2026-10-23). */
/* 앱과 같은 색, 같은 그림을 쓴다. 받으러 온 사람이 보는 첫 화면과 앱을 열었을 때가
   따로 놀면 같은 물건으로 안 읽힌다. */
:root {
  --ground: #ffffff; --surface: #f4f6fa; --raised: #ffffff;
  --line: #e2e6ef; --line-strong: #cbd2e0;
  --ink: #141822; --muted: #626c80;
  --accent: #2f6bff; --accent-ink: #ffffff; --accent-wash: #eaf0ff;
  --ok: #0f8a55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d0f14; --surface: #161922; --raised: #1a1e28;
    --line: #252a36; --line-strong: #39404f;
    --ink: #eef1f6; --muted: #98a1b3; --accent-wash: #16203a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
        "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 720px; margin: 0 auto; padding: 44px 22px 72px; }

/* ── 머리 ────────────────────────────────────────────────────────────────────────── */
.mark { height: 30px; width: auto; display: block; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* 캐릭터는 글 왼쪽에, 글 덩어리와 같은 높이로 선다. 얼굴이 먼저 보이고 그다음에
   무엇인지 읽히는 편이 낫다 — 이름만 아는 물건이 아니라 표정이 있는 물건이 된다. */
.hero { display: flex; align-items: center; gap: 20px; margin: 40px 0 32px; }
.hi { flex: none; width: 112px; height: auto; }

/* 한 줄이어야 한다. 줄이 넘어가면 "한 대처럼" 이 혼자 떨어져서 무슨 말인지 흐려진다.
   캐릭터가 옆에 있어 남는 너비가 정해져 있으므로, 글씨가 그 너비를 따라 줄어든다. */
h1 {
  font-size: clamp(20px, 4.6vw, 34px); line-height: 1.26; letter-spacing: -.022em;
  margin: 0 0 12px; font-weight: 700; white-space: nowrap;
}

/* 좁아지면 캐릭터를 위로 올리고 글씨는 마음대로 접히게 둔다 — 거기서까지 한 줄을
   고집하면 글씨가 읽기 힘들 만큼 작아진다. */
@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hi { width: 96px; }
  h1 { white-space: normal; font-size: clamp(26px, 7.4vw, 34px); }
}
.lead { color: var(--muted); font-size: 17px; margin: 0; }

/* ── 받기 ──────────────────────────────────────────────────────────────────────────
   버튼이 제 글씨보다 한참 컸다. 파란 칸만 넓고 가운데 글자가 작으면 눌러 달라는
   말보다 빈 칸이 먼저 보인다. 글씨를 키우고 칸을 글씨에 맞췄다. */
.getWrap { text-align: center; }
.get {
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  padding: 16px 66px; border-radius: 13px; font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; line-height: 1.25;
  transition: transform .12s ease, filter .12s ease;
}
.get:hover { filter: brightness(1.07); }
.get:active { transform: scale(.985); }
.get em { display: block; font-style: normal; font-weight: 400; font-size: 13px;
          opacity: .82; margin-top: 5px; letter-spacing: 0; }
@media (max-width: 420px) { .get { display: block; padding: 16px 20px; } }
.under { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.under b { color: var(--ink); font-weight: 600; }

/* ── 기능 세 개. 앱의 튜토리얼과 같은 그림이다. ──────────────────────────────────── */
.feats { margin: 52px 0 0; display: grid; gap: 12px; }
.feat {
  display: flex; align-items: center; gap: 20px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 15px;
  padding: 20px 22px;
}
.feat h3 { margin: 0 0 3px; font-size: 16.5px; font-weight: 600; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

.rig { position: relative; flex: none; width: 85px; height: 33px;
       display: flex; align-items: flex-end; gap: 9px; padding-bottom: 4px; }
.lap, .tab { position: relative; border: 2px solid var(--line-strong);
             background: var(--surface); box-sizing: border-box; }
.lap { width: 46px; height: 29px; border-radius: 3px; }
.lap::after { content: ''; position: absolute; left: -5px; right: -5px; bottom: -5px;
              height: 3px; background: var(--line-strong); border-radius: 0 0 3px 3px; }
.tab { width: 30px; height: 23px; border-radius: 4px; border-width: 2.5px; }
.rig i { position: absolute; display: block; border-radius: 2px;
         background: var(--accent); opacity: .9; }
.play { position: absolute; left: 0; top: 0; width: 85px; height: 33px;
        overflow: visible; z-index: 2; color: var(--accent); }

.rig.extend .lap i { inset: 3px; opacity: .22; }
.rig.extend .tab i { inset: 3px; transform-origin: left center;
                     animation: spread 2.8s ease-in-out infinite; }
@keyframes spread {
  0%, 12% { transform: scaleX(0); opacity: 0; }
  38%, 88% { transform: scaleX(1); opacity: .22; }
  100% { transform: scaleX(0); opacity: 0; }
}
.rig.input .cursor { animation: cursorGo 4.2s ease-in-out infinite; }
@keyframes cursorGo {
  0%, 14% { transform: translate(20px, 9px); }
  34%, 88% { transform: translate(75px, 15px); }
  100% { transform: translate(20px, 9px); }
}
.rig.input .hands, .rig.input .writes { animation: fadeIn 4.2s ease-in-out infinite; }
@keyframes fadeIn {
  0%, 36% { opacity: 0; } 46%, 86% { opacity: 1; } 94%, 100% { opacity: 0; }
}
.rig.input .w1, .rig.input .w2 { transform-origin: 60px center;
                                 animation: typed 4.2s ease-in-out infinite; }
.rig.input .w2 { animation-delay: .35s; }
@keyframes typed {
  0%, 44% { transform: scaleX(0); } 64%, 86% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}
.rig.clip g { opacity: 0; }
.rig.clip .photo1 { animation: hereA 7s ease-in-out infinite; }
.rig.clip .photo2 { animation: goRight 7s ease-in-out infinite; }
.rig.clip .txt1 { animation: hereB 7s ease-in-out infinite; }
.rig.clip .txt2 { animation: goLeft 7s ease-in-out infinite; }
@keyframes hereA {
  0%, 2% { opacity: 0; transform: translate(23px, 14.5px); }
  7%, 40% { opacity: 1; transform: translate(23px, 14.5px); }
  46%, 100% { opacity: 0; transform: translate(23px, 14.5px); }
}
@keyframes goRight {
  0%, 8% { opacity: 0; transform: translate(23px, 14.5px); }
  12% { opacity: 1; transform: translate(23px, 14.5px); }
  30%, 40% { opacity: 1; transform: translate(70px, 17.5px); }
  46%, 100% { opacity: 0; transform: translate(70px, 17.5px); }
}
@keyframes hereB {
  0%, 50% { opacity: 0; transform: translate(70px, 17.5px); }
  55%, 90% { opacity: 1; transform: translate(70px, 17.5px); }
  96%, 100% { opacity: 0; transform: translate(70px, 17.5px); }
}
@keyframes goLeft {
  0%, 56% { opacity: 0; transform: translate(70px, 17.5px); }
  60% { opacity: 1; transform: translate(70px, 17.5px); }
  80%, 90% { opacity: 1; transform: translate(23px, 14.5px); }
  96%, 100% { opacity: 0; transform: translate(23px, 14.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .rig i, .play * { animation: none !important; }
  .rig.extend .tab i { transform: none; opacity: .22; }
  .rig.input .cursor { transform: translate(75px, 15px); }
  .rig.input .hands, .rig.input .writes { opacity: 1; }
  .rig.clip .photo1 { opacity: 1; transform: translate(23px, 14.5px); }
  .rig.clip .photo2 { opacity: 1; transform: translate(70px, 17.5px); }
}

/* ── 설치 안내 ───────────────────────────────────────────────────────────────────── */
h2 { font-size: 20px; margin: 52px 0 16px; letter-spacing: -.01em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  position: relative; counter-increment: s; padding: 0 0 22px 46px;
  border-left: 2px solid var(--line); margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: -15px; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
}
.steps b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 14.5px; }

/* ── 필요한 것 ───────────────────────────────────────────────────────────────────── */
.specs { display: grid; gap: 10px; margin: 0; }
.spec {
  display: flex; gap: 14px; padding: 15px 17px;
  background: var(--surface); border-radius: 12px; font-size: 14.5px;
}
.spec b { flex: none; width: 86px; font-weight: 600; }
.spec span { color: var(--muted); }

footer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
         color: var(--muted); font-size: 13px; display: flex; justify-content: space-between;
         gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* 언어 고르기(2026-10-23) — 세 언어가 같은 이 파일을 쓴다. */
.langs { font-size: 13.5px; color: var(--muted); }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { color: var(--ink); }
html[lang="ja"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
                                    "Yu Gothic UI", "Meiryo", sans-serif; }

/* ── 처음 실행 경고 안내 팝업(2026-10-25) ─────────────────────────────────────────────── */
.guide { position: fixed; inset: 0; z-index: 10; background: rgba(10, 14, 24, .55);
         display: grid; place-items: center; padding: 16px; }
.guide[hidden] { display: none; }
.guideBox { width: 100%; max-width: 540px; max-height: min(620px, calc(100vh - 48px));
            display: flex; flex-direction: column; overflow: hidden;
            background: var(--raised); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
/* 머리(제목 + 닫기) · 몸(안에서 스크롤) · 발(오늘 하루 보지 않기)로 나눈다 — 몸만 움직이고 머리·발은 제자리. */
.guideHead { flex: none; display: flex; align-items: flex-start; gap: 12px;
             padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.guideHead h2 { flex: 1; margin: 2px 0 0; font-size: 18px; line-height: 1.4; }
.guideX { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
          color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.guideX:hover { background: var(--surface); color: var(--ink); }
.guideBody { flex: 1; overflow-y: auto; padding: 16px 22px 6px; }
.guideLead { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--accent-wash);
             color: var(--ink); font-size: 14px; line-height: 1.65; }
.guideSteps { margin: 0; padding-left: 20px; }
.guideSteps > li { margin: 0 0 18px; font-size: 14.5px; }
.guideSteps > li > b { display: block; }
.guideSteps > li > span { color: var(--muted); }
.guideNote { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }
.guideFoot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
             border-top: 1px solid var(--line); padding: 12px 18px 12px 22px; font-size: 14px; color: var(--muted); }
.guideFoot label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.guideFoot button { border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
                    font: inherit; font-weight: 600; padding: 9px 22px; cursor: pointer; }

/* 창 그림 — 실제 창의 모양을 우리 파일 이름·게시자로 다시 그렸다. 누를 단추에 파란 테두리. */
.shot { margin-top: 9px; font: 12.5px/1.5 "Segoe UI", "Malgun Gothic", "Yu Gothic UI", sans-serif;
        border-radius: 8px; overflow: hidden; color: #1b1b1b; }
.shot p { margin: 6px 0 0; }
.shot .btns { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.shot .btns span { padding: 5px 14px; border-radius: 4px; background: #e9e9e9; border: 1px solid #d0d0d0; }
.shot .btns .pick { outline: 3px solid var(--accent); outline-offset: 2px; }
.shot.smart { background: #0067b8; color: #fff; padding: 16px 18px; }
.shot.smart strong { font-size: 18px; font-weight: 600; }
.shot.smart em { font-style: normal; font-weight: 700; }
.shot.smart .btns span { background: transparent; border: 1px solid #fff; color: #fff; }
.shot.smart u.pick { display: inline-block; outline: 3px solid #fff; outline-offset: 3px; border-radius: 2px; }
.shot.uac { background: #f3f3f3; border: 1px solid #d0d0d0; }
.shot.uac .uacHead { background: #fff; padding: 8px 14px; font-weight: 600; border-bottom: 1px solid #e3e3e3; }
.shot.uac .uacBody { padding: 12px 14px; }
.shot.uac .uacApp { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.shot.uac .shield { width: 16px; height: 18px; border-radius: 3px 3px 8px 8px;
                    background: linear-gradient(90deg, #2b6fd6 50%, #f5c21b 50%); }
.shot.uac .btns span { min-width: 72px; text-align: center; }
.shot.uac .btns .pick { background: #005fb8; border-color: #005fb8; color: #fff; }
