/* 소개 페이지 전용 — 늘 어두운 바탕 + 볼트 포인트 하나 (방침·약관 문서는 style.css) */
.landing {
  --bg: #0b0c0d;
  --surface: #151618;
  --surface-2: #1d1e21;
  --line: #26282b;
  --text: #f2f2f0;
  /* 바탕 대비: text-2 13:1 · dim 6:1 — 회색이어도 읽히는 데까지만 낮춘다 */
  --text-2: #d0d0cd;
  --dim: #8c8d8a;
  --volt: #d4ff3f;
  --on-volt: #111111;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
.landing main { overflow-x: hidden; overflow-x: clip; }
.landing section[id] { scroll-margin-top: 40px; }
@media (max-width: 860px) { .landing section[id] { scroll-margin-top: 90px; } }
.landing .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.l-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 12, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.l-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.l-nav .logo img { height: 26px; width: auto; }
.l-nav .links { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.l-nav .links a { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; padding: 6px 14px; border-radius: 999px; }
.l-nav .links a:hover { color: var(--text); background: var(--surface-2); }
.l-nav .links .sep { width: 1px; margin: 6px 4px; background: var(--line); }
/* 좁은 화면: 링크 줄을 머리 아래 둘째 줄로 내리고, 넘치면 옆으로 민다 */
@media (max-width: 860px) {
  .l-nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 10px; }
  .l-nav .links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .l-nav .links::-webkit-scrollbar { display: none; }
  .l-nav .links { justify-content: space-between; }
  .l-nav .links a { white-space: nowrap; padding: 6px 10px; font-size: 13.5px; }
  .l-nav .links .sep { display: none; }
}
/* 폰 폭에서는 약관·방침이 잘리지 않게 덜 중요한 링크를 뺀다 */
@media (max-width: 440px) { .l-nav .links .opt { display: none; } }

/* 버튼 */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--volt);
  color: var(--on-volt);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta.sm { font-size: 14px; padding: 9px 16px; }
.cta svg { width: 18px; height: 18px; flex: none; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: var(--text);
  color: var(--bg);
  transition: transform 0.15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; line-height: 1.2; }
.store strong { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.store.alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
/* 아직 스토어에 없을 때 — 링크 대신 '출시 예정' */
.store[aria-disabled='true'] { cursor: default; transform: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* 첫 화면 */
.hero { position: relative; padding: 72px 0 0; text-align: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.hero h1 {
  position: relative;
  font-size: clamp(42px, 9vw, 96px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.045em;
  margin: 22px 0 22px;
}
.hero h1 .dim { color: var(--volt); }
.hero .lead { position: relative; font-size: clamp(16px, 2.2vw, 19px); color: var(--text-2); margin: 0 auto 32px; max-width: 30em; }
.hero .stores { position: relative; justify-content: center; }

/* 폰 목업 */
.phone {
  position: relative;
  width: 300px;
  padding: 9px;
  background: #050505;
  border-radius: 46px;
  box-shadow: inset 0 0 0 1.5px #3a3b3e, 0 40px 80px rgba(0, 0, 0, 0.55);
  flex: none;
}
/* 비율은 테두리 안쪽 화면에 건다 — 바깥에 걸면 테두리만큼 홀쭉해져 스크린샷 좌우가 잘린다 */
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 38px; background: #fff; }
/* 폰 묶음 — 화면 폭 전체로 펼친 뒤 아래로 갈수록 투명하게(mask) 지운다.
   덧씌우는 그라데이션은 기운 양옆 폰을 다 덮지 못해 모바일에서 잘린 선이 보였다. */
.fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  margin: 56px 0 0 calc(50% - 50vw);
  padding-top: 8px;
  height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.fan::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(820px, 160vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212, 255, 63, 0.38), rgba(212, 255, 63, 0.1) 55%, transparent);
  pointer-events: none;
}
.fan .phone { z-index: 1; }
.fan .phone:nth-child(1) { transform: translate(60px, 70px) rotate(-9deg); opacity: 0.9; }
.fan .phone:nth-child(2) { z-index: 2; width: 330px; }
.fan .phone:nth-child(3) { transform: translate(-60px, 70px) rotate(9deg); opacity: 0.9; }
@media (max-width: 720px) {
  .fan { height: 480px; }
  .fan .phone { width: 220px; }
  .fan .phone:nth-child(2) { width: 250px; }
  .fan .phone:nth-child(1) { transform: translate(90px, 60px) rotate(-9deg); }
  .fan .phone:nth-child(3) { transform: translate(-90px, 60px) rotate(9deg); }
}

/* 공통 섹션 머리 */
section.block { padding: 96px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--volt); margin: 0 0 16px; letter-spacing: 0.02em; }
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h2.big { font-size: clamp(34px, 6vw, 64px); line-height: 1.1; font-weight: 900; letter-spacing: -0.04em; margin: 0; }
h2.big .dim { color: var(--volt); }

/* 한 줄 소개 + 세 가지 */
.intro { margin-bottom: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; }
.intro p { color: var(--text-2); font-size: 17px; margin: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.trio h3 { font-size: 17px; margin: 0 0 8px; }
.trio p { color: var(--text-2); font-size: 15px; margin: 0; line-height: 1.65; }
@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 24px; }
}

/* 기능 벤토 */
.bento-head { text-align: center; margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.card h3 { font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 8px; }
.card p { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.6; max-width: 22em; }

/* 카드 안 화면 조각 — 폰 전체 대신 핵심 UI만 흰 패널로 띄운다. 카드 안에서 잘리지 않는다. */
.card .ui { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.panel {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.panel img { display: block; width: 100%; height: auto; border-radius: 12px; }

.c-home { grid-column: span 4; background: radial-gradient(120% 90% at 85% 100%, #2a3510 0%, var(--surface) 60%); }
.c-home .ui .panel { width: min(100%, 400px); transform: rotate(-2deg); }

.c-ticket { grid-column: span 2; background: var(--volt); color: var(--on-volt); border-color: transparent; }
.c-ticket .tag { background: rgba(0, 0, 0, 0.08); color: var(--on-volt); }
.c-ticket p { color: rgba(17, 17, 17, 0.72); }
/* 앱이 공유하는 이미지 그대로(흰 틀 + 거의 각진 카드) — 모서리를 둥글게 깎지 않는다 */
.c-ticket .ui img {
  width: min(84%, 250px);
  border-radius: 6px;
  transform: rotate(-5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.c-stats .stack-ui { position: relative; flex-direction: column; align-items: stretch; padding-bottom: 36px; }
.c-stats .stack-ui .panel:first-child { transform: rotate(1.5deg); }
.c-stats .chip-ui { position: relative; width: 82%; margin: -28px 0 0 -6px; padding: 8px; border-radius: 18px; transform: rotate(-3deg); }
.c-stats .chip-ui img { border-radius: 12px; }

.c-record { grid-column: span 4; }
.c-stats { grid-column: span 2; }
.c-record .steps { margin: 18px 0 0; }
.c-record .steps li { padding: 0; }
.c-record .steps li::before { top: 14px; width: 32px; height: 32px; font-size: 12px; transition: background 0.3s, color 0.3s; }
.c-record .steps button {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 14px 0 14px 48px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  cursor: pointer;
}
.c-record .steps button:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 8px; }
.c-record .steps strong { display: block; color: var(--text); font-size: 16px; }

/* 1·2·3 돌아가며 보기 — 지금 단계만 밝히고, 아래 막대가 차면 다음 단계로 (스크립트는 index.html) */
.cycle li { opacity: 0.45; transition: opacity 0.3s; }
.cycle li.on { opacity: 1; }
.cycle li.on::before { background: var(--volt); color: var(--on-volt); }
.cycle .bar {
  position: absolute;
  left: 48px;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
}
.cycle li.on .bar { animation: step-fill 4s linear forwards; }
.cycle.paused li.on .bar { animation-play-state: paused; }
@keyframes step-fill { to { transform: scaleX(1); } }

/* 단계에 맞춰 바뀌는 스크린샷 — 겹쳐 두고 지금 것만 보인다 */
/* 세 장을 같은 칸에 겹친다(grid) — 폰 높이는 스크린샷 비율 그대로 */
.phone.stack { display: grid; }
.phone.stack img { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.45s ease; }
.phone.stack img.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cycle li.on .bar { animation: none; transform: scaleX(1); }
  .phone.stack img { transition: none; transform: none; }
}
@media (min-width: 821px) {
  .c-record { flex-direction: row; gap: 32px; align-items: center; }
  .c-record .txt { flex: 1; }
  .c-record .shot { margin: 0; padding: 0; }
  .c-home { flex-direction: row; gap: 32px; align-items: center; }
  .c-home .txt { flex: 1; align-self: flex-start; }
  .c-home .ui { flex: 1.2; margin: 0; padding: 8px 0; }
}
/* 기록 카드의 폰은 잘리지 않게 통째로 */
.c-record .shot { display: flex; justify-content: center; padding-top: 28px; }
.c-record .shot .phone { width: 280px; }
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .bento > .card { grid-column: auto; }
  .c-record .shot .phone { width: 250px; }
}

/* 사용 순서 */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: center; }
.how .phone { margin: 0 auto; width: 300px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: step; }
.steps li { position: relative; padding: 22px 0 22px 64px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: '0' counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-2);
}
.steps h3 { font-size: 18px; margin: 0 0 4px; }
.steps p { font-size: 15px; color: var(--text-2); margin: 0; }
@media (max-width: 820px) {
  .how { grid-template-columns: 1fr; }
  .how .phone { width: 240px; order: 2; }
}

/* 자주 묻는 질문 — 답까지 펼쳐 둔다 */
.faq-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.faq-head a { color: var(--text); font-weight: 600; font-size: 15px; text-underline-offset: 4px; }
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq div { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 24px; }
.faq h3 { display: flex; gap: 10px; font-size: 17px; line-height: 1.45; margin: 0 0 10px; }
.faq h3::before { content: 'Q'; color: var(--volt); font-weight: 900; }
.faq p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.faq strong { color: var(--text); }
.faq a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* 마지막 다운로드 */
.download {
  position: relative;
  overflow: hidden;
  margin: 120px 0 0;
  background: var(--volt);
  color: var(--on-volt);
  border-radius: 36px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.download h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 900; margin: 0 0 14px; }
.download p { font-size: 17px; margin: 0 0 28px; color: rgba(17, 17, 17, 0.72); }
.download .store { background: var(--on-volt); color: #fff; }
.download .store.alt { background: transparent; color: var(--on-volt); box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, 0.35); }
.download .app-icon { width: 168px; height: 168px; border-radius: 38px; transform: rotate(6deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); margin-right: 24px; }
@media (max-width: 820px) {
  .download { grid-template-columns: 1fr; padding: 44px 24px; border-radius: 28px; }
  .download .app-icon { order: -1; width: 96px; height: 96px; border-radius: 22px; margin: 0; }
}

/* 꼬리 */
.landing .foot { border-top-color: var(--line); color: var(--text-2); margin-top: 96px; max-width: 1120px; }
.landing .foot a:hover { color: var(--text); }
