/* 소개 페이지 /about (개편 L1). 색·글꼴은 app.css·v2.css 토큰 그대로, 여기에는 배치와 움직임만.
   - 어둡게는 @media (prefers-color-scheme: dark) 로만 (테마 단추 sbTheme 가 이 조건을 바꿔 끼움)
   - sticky(겹쳐 넘기기·휴대폰 장면)의 조상에는 overflow 를 두지 않는다. 아이폰 사파리에서 고정 구간이 흔들림
   - 움직임은 html.ab-js (about.js 가 움직임 줄이기가 꺼져 있을 때만 붙임) 아래에만. 없으면 모든 내용이 그대로 보임 */
.ab { background: var(--card); color: var(--ink); }
.ab-sr { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.ab main { max-width: none; margin: 0; padding: 0; }      /* 틀(app.css)의 main 폭 600px·여백을 풀어 장면이 화면 폭을 다 쓰게 */
.ab h1, .ab h2 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.22; text-wrap: balance; }
.ab-say p, .ab-lead, .ab-step p { text-wrap: pretty; }
.ab p { margin: 0; }

/* 머리 */
.ab-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 8px 16px; }
.ab-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ink); }
.ab-brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--btn-bg); display: grid; place-items: center; }
.ab-brand .mark svg { width: 20px; height: 20px; color: #fff; }
.ab-top nav { display: flex; align-items: center; gap: 4px; }
.ab-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink2); font-weight: 600; font-size: var(--fs-15); }
.ab-link.ab-go { color: var(--link); }   /* 머리의 체험해 보기는 글자 단추: 첫 화면의 파란 주 단추는 본문 하나 (리뷰 N11) */

/* 첫 장면 */
.ab-hero { padding: 56px 0 72px; text-align: center; }
.ab-hero h1 { font-size: clamp(34px, 6.2vw, 68px); padding: 0 20px; }
.ab-lead { max-width: 30em; margin: 16px auto 0 !important; padding: 0 20px; color: var(--ink2); font-size: clamp(16px, 1.7vw, 20px); }
.ab-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px !important; padding: 0 20px; }
.ab-cta .btn.big { width: auto; min-width: 148px; height: 52px; padding: 0 24px; }

/* 제품 화면 */
.ab-zoom { margin-top: 40px; }
.ab-shot { margin: 0 auto; width: min(64vw, 270px); border: 5px solid var(--fill-strong); border-radius: 30px; overflow: hidden; background: var(--card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .12); }
.ab-shot picture, .ab-phone picture { display: block; }
.ab-shot img, .ab-phone img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 1688; }
.ab-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .ab-light { display: none !important; }
  .ab-dark { display: block !important; }
  .ab-shot { box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
}
@media (min-width: 768px) {
  .ab-shot { width: min(100% - 48px, 1080px); border-width: 1px; border-color: var(--line); border-radius: 14px; }
  .ab-shot img { aspect-ratio: 1440 / 900; }
}

/* 장면 넷: 한 장면에 한 가지 */
.ab-scene { padding: 64px 0 72px; background: var(--card); border-top: 1px solid var(--line); }
.ab-scene:nth-child(even) { background: var(--bg); }
.ab-say { max-width: 720px; margin: 0 auto; padding: 0 20px; text-align: center; }
.ab-say h2 { font-size: clamp(28px, 4.4vw, 48px); }
.ab-say > p:not(.ab-no) { margin-top: 12px; color: var(--ink2); font-size: clamp(16px, 1.6vw, 19px); }
.ab-no { margin-bottom: 8px !important; color: var(--link); font-weight: 700; font-size: var(--fs-15); }
/* 넓은 화면: 다음 장면이 앞 장면 위로 겹쳐 올라온다 (CSS 만으로). 장면은 화면 높이에 꼭 맞게 */
@media (min-width: 900px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .ab-scene { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 40px;
    border-top: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -16px 40px rgba(0, 0, 0, .08); margin-bottom: 35vh; }
  .ab-scene:last-child { margin-bottom: 0; }
  .ab-scene .ab-zoom { margin-top: 28px; }
  .ab-scene .ab-shot { width: min(100% - 64px, 1080px, (100vh - 330px) * 1.6); }
}

/* 휴대폰 장면. 기본(스크립트 없음·움직임 줄이기)은 세 화면을 나란히 */
.ab-pin { padding: 64px 0 72px; background: var(--card); border-top: 1px solid var(--line); }
.ab-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 960px; margin: 32px auto 0; padding: 0 20px; }
.ab-step { text-align: center; }
.ab-step p { color: var(--ink2); font-size: var(--fs-15); }
.ab-step p b { display: block; margin-bottom: 4px; color: var(--ink); font-size: var(--fs-20); letter-spacing: -0.03em; }
.ab-phone { width: min(64vw, 250px); margin: 16px auto 0; border: 5px solid var(--fill-strong); border-radius: 30px; overflow: hidden; background: var(--card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .12); }
@media (min-width: 768px) { .ab-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
/* 고정 장면 (about.js 가 .on 을 붙임): 구간을 내리는 동안 화면은 멈춰 있고 휴대폰 화면만 차례로 바뀐다 */
.ab-pin.on { height: 330vh; padding: 0; }
.ab-pin.on .ab-pin-in { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 28px 0 24px; }
.ab-pin.on .ab-steps { position: relative; display: block; flex: 1; min-height: 0; width: 100%; margin-top: 16px; }
.ab-pin.on .ab-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 0 20px;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .35s ease-out, transform .35s ease-out, visibility 0s .35s; }
.ab-pin.on .ab-step.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ab-pin.on .ab-phone { flex: 1; min-height: 0; width: auto; aspect-ratio: 780 / 1688; margin-top: 16px; }
.ab-pin.on .ab-phone img { height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 900px) {
  .ab-pin.on .ab-step { flex-direction: row; justify-content: center; gap: 72px; }
  .ab-pin.on .ab-step p { width: 320px; text-align: left; font-size: var(--fs-17); }
  .ab-pin.on .ab-step p b { font-size: 28px; margin-bottom: 8px; }
  .ab-pin.on .ab-phone { flex: none; height: 100%; margin-top: 0; }
}

/* 숫자 */
.ab-nums { padding: 72px 0 80px; background: var(--bg); border-top: 1px solid var(--line); }
.ab-facts { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 1080px; margin: 36px auto 0; padding: 0 20px; }
@media (min-width: 560px) { .ab-facts { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .ab-facts { grid-template-columns: repeat(4, 1fr); } }
.ab-fact { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.ab-fact-what { min-height: 3em; color: var(--ink2); font-size: var(--fs-15); font-weight: 600; }
.ab-fact-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; font-variant-numeric: tabular-nums; }
.ab-old { color: var(--ink2); font-size: var(--fs-17); font-weight: 600; }
.ab-arrow { color: var(--ink2); }
.ab-fact-n b { color: var(--link); font-size: 30px; letter-spacing: -0.03em; line-height: 1.2; }
.ab-bars { margin-top: 12px; }
.ab-bars i { display: block; width: var(--w); height: 8px; margin-top: 6px; border-radius: 4px; background: var(--fill-strong); }
.ab-bars i.new { background: var(--btn-bg); }
.ab-note { max-width: 720px; margin: 24px auto 0 !important; padding: 0 20px; text-align: center; color: var(--ink2); font-size: var(--fs-13); }

/* 끝: 두 단추, 자주 묻는 것, 약관 */
.ab-end { padding: 88px 0 96px; text-align: center; border-top: 1px solid var(--line); }
.ab-end h2 { font-size: clamp(30px, 5vw, 56px); padding: 0 20px; }
.ab-faq { max-width: 720px; margin: 0 auto; padding: 0 20px 72px; }
.ab-faq h2 { font-size: var(--fs-22); margin-bottom: 8px; }
.ab-faq details { border-bottom: 1px solid var(--line); }
.ab-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; cursor: pointer; font-weight: 600; list-style: none; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: '+'; flex: none; width: 24px; text-align: center; color: var(--ink2); font-size: 22px; font-weight: 500; line-height: 1; }
.ab-faq details[open] summary::after { content: '\2212'; }
.ab-faq details p { padding: 0 0 20px; color: var(--ink2); font-size: var(--fs-15); }
.ab-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.ab-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink2); font-size: var(--fs-13); font-weight: 600; }

/* 움직임: 등장, 화면이 다가오며 커짐, 막대가 자람. about.js 가 html.ab-js 를 붙였을 때만 */
.ab-js .ab-rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease-out, transform .5s ease-out; }
.ab-js .ab-rv.in { opacity: 1; transform: none; }
.ab-js .ab-zoom .ab-shot { transform: translateY(calc((1 - var(--p, 1)) * 48px)) scale(calc(.9 + .1 * var(--p, 1))); opacity: calc(.3 + .7 * var(--p, 1)); will-change: transform, opacity; }
.ab-js .ab-hero .ab-zoom .ab-shot { opacity: 1; }
.ab-js .ab-fact .ab-bars i { width: 0; transition: width .8s ease-out .15s; }
.ab-js .ab-fact.in .ab-bars i { width: var(--w); }
@media (prefers-reduced-motion: reduce) {
  .ab-js .ab-rv, .ab-js .ab-zoom .ab-shot { opacity: 1; transform: none; transition: none; }
  .ab-js .ab-fact .ab-bars i { width: var(--w); transition: none; }
}
