/* ==========================================================================
   APPS: 앱 목록(/apps/), One Page English(/apps/one-page-english/)
   공용 부품: CSS로 그린 Android 휴대폰(.phone)
   ========================================================================== */

/* ---------- 휴대폰 ----------
   --w 하나로 크기를 정한다. 화면 비율은 실제 스크린샷(720×1432)과 같다. */
.phone {
  --w: 280px;
  --bz: calc(var(--w) * 0.032);
  position: relative;
  flex: none;
  width: var(--w);
  padding: var(--bz);
  border-radius: calc(var(--w) * 0.15);
  background: linear-gradient(155deg, #2C333D 0%, #151B23 16%, #0A0E13 52%, #161C25 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 46px 80px -38px rgba(0, 0, 0, 0.95),
    0 20px 44px -26px rgba(0, 0, 0, 0.85);
}
.phone::before,
.phone::after {                       /* 전원 버튼, 음량 버튼 */
  content: ""; position: absolute; right: -2px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #0B0F14, #2A313A);
}
.phone::before { top: 20%; height: 7%; }
.phone::after { top: 30%; height: 13%; }
.phone-screen {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 720 / 1432;
  border-radius: calc(var(--w) * 0.118);
  background: #F6F7F5;
}
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.phone-cam {                          /* 화면 위 카메라 구멍 */
  position: absolute; z-index: 3; top: calc(var(--w) * 0.009); left: 50%;
  width: calc(var(--w) * 0.022); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #26303C 0%, #05070A 62%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- 공용 ---------- */
.apps-sec { padding-block: clamp(64px, 9vw, 128px); }
.apps-sec-end { padding-top: 0; }
.apps-sec-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.apps-sec-head p { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }

/* 출시 알림, 스토어 버튼 자리. 앱 정보를 읽기 전에는 자리만 잡아 둔다 */
.js [data-ope-cta]:not([data-ready]) { visibility: hidden; }
.ope-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: var(--r-pill); border: 1px dashed var(--line-input);
  color: var(--text-3); font-size: .92rem; font-weight: 600; white-space: nowrap;
  cursor: default; user-select: none;
}
.store-soon svg { opacity: .7; }
.wl-done {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 6px 6px 6px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(99, 242, 210, 0.32); background: var(--ether-dim);
}
.wl-done-mark {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ether); color: var(--ether-ink);
}
.wl-done-text { display: grid; line-height: 1.35; }
.wl-done-text strong { font-weight: 700; font-size: .98rem; }
.wl-done-text span { color: var(--text-2); font-size: .86rem; }
.wl-done .btn { min-height: 44px; }
.wl-count { color: var(--text-2); font-size: .92rem; }
.wl-count[hidden] { display: none; }

/* ==========================================================================
   /apps/ 앱 목록
   ========================================================================== */
.apps-head { padding-top: clamp(40px, 5.2vw, 72px); padding-bottom: clamp(28px, 3.4vw, 44px); }
.apps-head .lead { margin-top: 16px; max-width: 40em; }
.br-m { display: none; }
.br-d { display: none; }
@media (min-width: 761px) { .br-d { display: inline; } }

/* 대표 앱: 실제 화면 세 장이 부채처럼 펼쳐진다(페이지에서 한 번만 움직이는 곳) */
.fa {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 540px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 80% at 76% 108%, rgba(99, 242, 210, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)),
    var(--panel);
}
.fa-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 18px; padding: clamp(28px, 4.4vw, 60px);
}
.fa-name {
  font-family: var(--f-display-latin); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(2.9rem, 5.2vw, 4.6rem); line-height: .95;
}
.fa-name a:hover { color: var(--ether-2); }
.fa-tagline { color: var(--text-2); font-size: 1.1rem; max-width: 24em; }
.fa-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.fa-price strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.fa-price span { color: var(--text); font-weight: 600; }
.fa-note { color: var(--text-2); font-size: .95rem; max-width: 26em; margin-top: -8px; }
.fa-platform { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: .9rem; }
.fa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fa-actions .ope-cta { display: contents; }

.fa-stage { position: relative; min-height: 440px; }
.fan { position: absolute; left: 47%; bottom: 0; width: 0; height: 100%; }
.fan .phone {
  position: absolute; left: calc(var(--w) / -2); bottom: var(--b);
  transform-origin: 50% 100%;
  transform: translate(var(--x), 0) rotate(var(--r));
  transition: transform 1.1s var(--ease-out), opacity .7s var(--ease-out), filter .6s;
}
.fan .phone.is-left { --w: 216px; --b: -84px; --x: -126px; --r: -7deg; filter: brightness(.78); }
.fan .phone.is-right { --w: 216px; --b: -84px; --x: 126px; --r: 7deg; filter: brightness(.78); }
.fan .phone.is-front { --w: 262px; --b: -54px; --x: 0px; --r: 0deg; z-index: 2; }
.fan .phone.is-left, .fan .phone.is-right { transition-delay: 90ms; }
/* 처음: 한 장으로 겹쳐 있다가 펼쳐진다 */
.js .fan:not(.is-go) .phone { transform: translate(0, 34%) rotate(0deg); opacity: 0; }
.js .fan:not(.is-go) .phone.is-front { transform: translate(0, 26%); }

/* 개발 중인 앱 */
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.dev-app { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dev-art { position: relative; height: 188px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dev-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dev-body { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 32px); }
.dev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dev-meta .plat { color: var(--text-3); font-size: .86rem; }
.dev-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dev-title h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.dev-title h3.is-en { font-family: var(--f-serif); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; }
.dev-title .alt { color: var(--text-3); font-size: .95rem; font-weight: 550; }
.dev-title .alt.is-en { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.25rem; }
.dev-tagline { font-weight: 600; font-size: 1.04rem; }
.dev-summary { color: var(--text-2); font-size: .98rem; }
.dev-list { list-style: none; display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.dev-list li { position: relative; padding-left: 20px; color: var(--text-2); font-size: .94rem; line-height: 1.6; }
.dev-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 1.5px; border-radius: 2px; background: var(--text-3); }
.dev-aud { color: var(--text-3); font-size: .9rem; }

/* 도식 선과 점 */
.art-rail { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.art-rail-on { stroke: var(--ether); stroke-width: 1.5; fill: none; }
.art-node { fill: var(--bg-2); stroke: var(--line-input); stroke-width: 1.5; }
.art-node-done { fill: var(--ether-dim); stroke: var(--ether); stroke-width: 1.5; }
.art-node-next { fill: var(--ether); }
.art-halo { fill: none; stroke: var(--ether); stroke-opacity: .3; stroke-width: 1.5; }
.art-tag { fill: var(--text-3); font-family: var(--f-sans); font-size: 11.5px; font-weight: 600; }
.art-tag-on { fill: var(--ether); }
.art-card { fill: rgba(255, 255, 255, 0.02); stroke: var(--line-2); stroke-width: 1.2; }
.art-card-on { fill: var(--ether-dim); stroke: rgba(99, 242, 210, 0.55); stroke-width: 1.2; }
.art-bar { fill: var(--line-2); }
.art-bar-on { fill: rgba(99, 242, 210, 0.55); }
.art-lane { stroke: var(--line); stroke-width: 1.2; }
.art-hit { stroke: var(--xync); stroke-width: 2; stroke-linecap: round; }
.art-beat { fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.art-ring { fill: none; stroke: var(--xync); }
.art-core { fill: var(--xync); }
.art-tick { stroke: var(--line-2); stroke-width: 1.2; stroke-linecap: round; }
.art-tick-bar { stroke: var(--text-3); }

/* 맺음 */
.apps-more {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
  padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line);
}
.apps-more h2 { font-family: var(--f-display); font-weight: var(--w-display-strong); font-size: 1.6rem; letter-spacing: -0.02em; }
.apps-more p { color: var(--text-2); margin-top: 8px; max-width: 36em; }
.apps-more .row { gap: 10px; }

@media (max-width: 640px) { .br-m { display: inline; } }
@media (min-width: 961px) and (max-width: 1200px) {
  .fan .phone.is-left { --w: 192px; --x: -108px; }
  .fan .phone.is-right { --w: 192px; --x: 108px; }
  .fan .phone.is-front { --w: 236px; }
}
@media (max-width: 960px) {
  .fa { grid-template-columns: 1fr; min-height: 0; }
  .fan { left: 50%; }
  .fa-stage { min-height: 372px; }
  .fan .phone.is-left { --w: 184px; --b: -96px; --x: -112px; }
  .fan .phone.is-right { --w: 184px; --b: -96px; --x: 112px; }
  .fan .phone.is-front { --w: 214px; --b: -70px; }
  .dev-grid { grid-template-columns: 1fr; }
  .apps-more { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .fa-stage { min-height: 322px; }
  .fan .phone.is-left { --w: 164px; --x: -96px; --b: -92px; }
  .fan .phone.is-right { --w: 164px; --x: 96px; --b: -92px; }
  .fan .phone.is-front { --w: 196px; --b: -76px; }
  .fa-actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   /apps/one-page-english/
   ========================================================================== */
.ope { --pw: clamp(236px, calc((100svh - var(--header-h) - 150px) / 2.04), 318px); }

.ope-stage { display: grid; grid-template-columns: minmax(0, 1fr) max(var(--pw), 372px); column-gap: clamp(40px, 7vw, 112px); }
.ope-copy { min-width: 0; }

.ope-hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 22px; padding-block: 40px 56px;
}
.ope-crumb { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-3); }
.ope-crumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); }
.ope-crumb a:hover { color: var(--text); }
.ope-crumb a svg { transform: scaleX(-1); }
.ope-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ope-platform { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: .92rem; }
.ope-name {
  font-family: var(--f-display-latin); font-weight: 400; letter-spacing: -0.025em;
  font-size: clamp(3.5rem, 8.2vw, 8rem); line-height: .88;
  margin-top: 6px;
}
.ope-tagline { font-size: clamp(1.12rem, 1.55vw, 1.36rem); line-height: 1.62; color: var(--text-2); max-width: 22em; }
.ope-price { display: grid; gap: 4px; padding: 16px 0 4px; }
.ope-price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.ope-price-main strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.ope-price-main span { font-weight: 650; font-size: 1.1rem; }
.ope-price p { color: var(--text-2); font-size: .98rem; }
.ope-price p.ope-price-main { color: var(--text); font-size: inherit; }

.ope-tour-title { font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.4rem; color: var(--text-2); letter-spacing: -0.02em; line-height: 1.3; padding-bottom: 8px; }

.ope-chapters { list-style: none; }
.ope-chapter {
  min-height: 64svh; max-width: 30em;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding-block: 7svh;
}
.ope-chapter h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.18; letter-spacing: -0.035em; font-weight: 780; }
.ope-chapter p { color: var(--text-2); font-size: 1.08rem; line-height: 1.8; }
.ope-chapter .ope-aside { color: var(--text-3); font-size: .95rem; padding-top: 12px; border-top: 1px solid var(--line); }
.ope-chapter .phone { display: none; }
.js .ope-chapter { opacity: .3; transition: opacity .5s var(--ease-out); }
.js .ope-chapter.is-on { opacity: 1; }

.ope-phonecol { position: relative; }
.ope-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.ope-sticky .phone { --w: var(--pw); }
.js .ope-sticky .phone { animation: ope-rise 1.1s var(--ease-out) both; }
@keyframes ope-rise { from { opacity: 0; transform: translateY(48px) rotate(2.5deg); } to { opacity: 1; transform: none; } }

.phone-screen img[data-layer] {
  opacity: 0; transform: translateY(5%);
  transition: opacity .42s var(--ease-out), transform .62s var(--ease-out);
}
.phone-screen img[data-layer].is-before { transform: translateY(-5%); }
.phone-screen img[data-layer].is-on { opacity: 1; transform: none; }

.ope-picker { max-width: 100%; }
.ope-picker .tab { padding: 0 13px; font-size: .88rem; white-space: nowrap; }
.ope-picker-m { display: none; }

/* 평생 이용권에 들어 있는 것 */
.ope-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); list-style: none; }
.ope-ledger li { display: grid; align-content: start; gap: 6px; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.ope-ledger h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.ope-ledger p { color: var(--text-2); font-size: .97rem; line-height: 1.7; }

/* 가격: 평생 이용권 한 장 */
.ticket {
  --cut: 40%;
  position: relative;
  display: grid; grid-template-columns: var(--cut) minmax(0, 1fr);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(99, 242, 210, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  -webkit-mask:
    radial-gradient(circle at var(--cut) 0, transparent 15px, #000 15.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--cut) 100%, transparent 15px, #000 15.5px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at var(--cut) 0, transparent 15px, #000 15.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--cut) 100%, transparent 15px, #000 15.5px) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 2px dashed var(--line-2);
}
.ticket-kind { font-weight: 700; color: var(--ether); font-size: 1rem; }
.ticket-price { display: flex; align-items: flex-start; gap: 4px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(3.4rem, 6.4vw, 5.2rem); }
.ticket-price .cur { font-size: .46em; font-weight: 700; letter-spacing: 0; margin-top: .18em; color: var(--text-2); }
.ticket-once { color: var(--text-2); font-size: 1rem; }
.ticket-stub .ope-cta { margin-top: 10px; }
.ticket-main { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.6vw, 48px) clamp(24px, 4vw, 56px); }
.ticket-steps { display: grid; gap: 0; list-style: none; counter-reset: step; }
.ticket-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 2px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ticket-steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-input); color: var(--text-2);
  font-family: var(--f-mono); font-size: .86rem;
}
.ticket-steps li:last-of-type::before { border-color: var(--ether); color: var(--ether); }
.ticket-steps .when { font-size: .88rem; color: var(--text-3); font-weight: 600; }
.ticket-steps .what { font-size: 1.08rem; font-weight: 650; }
.ticket-future { padding: 18px 0 0; color: var(--text-2); font-size: .97rem; }
.ticket-future strong { color: var(--text); font-weight: 650; }

/* 자주 묻는 질문 */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 4px; font-weight: 650; font-size: 1.06rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ether-2); }
.faq-plus { position: relative; flex: none; width: 22px; height: 22px; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--d-3) var(--ease-out); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 4px 24px; color: var(--text-2); max-width: 36em; }
.faq-a p + p { margin-top: 10px; }

/* 커뮤니티로 */
.ope-talk {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 48px;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg);
  border: 1px solid rgba(255, 138, 102, 0.22);
  background: linear-gradient(120deg, var(--xync-dim), rgba(255, 138, 102, 0.02) 60%), var(--bg-2);
}
.ope-talk h2 { font-family: var(--f-display); font-weight: var(--w-display-strong); font-size: 1.55rem; letter-spacing: -0.02em; }
.ope-talk p { color: var(--text-2); margin-top: 8px; max-width: 34em; }

@media (max-width: 1100px) {
  .ope-stage { grid-template-columns: minmax(0, 1fr) var(--pw); }
  .ope-picker { display: none; }
}
@media (max-width: 960px) {
  .ope-stage { display: block; }
  .ope-phonecol { display: none; }
  .ope-hero { min-height: 0; padding-block: 28px 40px; gap: 18px; }
  .ope-tour-title { padding-bottom: 14px; }
  .ope-picker-m {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px 18px; padding: 2px 16px;
  }
  .ope-picker-m::-webkit-scrollbar { display: none; }
  .ope-picker-m button {
    flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
    color: var(--text-2); font-weight: 600; font-size: .92rem;
  }
  .ope-picker-m button[aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
  .ope-chapters {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none;
  }
  .ope-chapters::-webkit-scrollbar { display: none; }
  .ope-chapter {
    flex: 0 0 min(84%, 340px); min-height: 0; max-width: none;
    justify-content: flex-start; gap: 12px; padding: 0;
    scroll-snap-align: center;
  }
  .js .ope-chapter { opacity: 1; }
  .ope-chapter .phone { display: block; --w: min(62vw, 236px); margin: 0 auto 10px; }
  .ope-chapter h3 { font-size: 1.45rem; }
  .ope-chapter p { font-size: 1rem; line-height: 1.75; }
  .ope-ledger { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket-stub { border-right: 0; border-bottom: 2px dashed var(--line-2); }
  .faq { grid-template-columns: 1fr; }
  .ope-talk { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .ope-cta > .btn, .ope-cta > .wl-done { flex: 1 1 100%; }
  .ope-cta > .wl-done .btn { margin-left: auto; }
  .ope-cta > .store-soon { flex: 1 1 100%; justify-content: center; }
}
