@charset "utf-8";

/* =========================================================
   나이스철거 모바일 랜딩 (Figma 390×844 기준)
   ========================================================= */

:root{
  --navy:       #13235B;   /* 본문 제목 */
  --navy-sub:   #5B6A93;   /* 보조 설명 */
  --navy-mute:  #7A86A8;   /* 각주 */
  --blue:       #2563EB;   /* 강조 */
  --line:       #E1E8F8;   /* 카드 테두리 */
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 0;
  background:linear-gradient(180deg,#F7F9FF 0%,#E9F0FF 100%) fixed;
  font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  color:var(--navy);
  word-break:keep-all;
  -webkit-font-smoothing:antialiased;
}

ul{ list-style:none; }
img{ display:block; }

.page{
  width:100%;
  max-width:390px;
  padding:0 18px;
}

/* ---------- 헤더 ---------- */
.hero{ text-align:center; }

.hero__title{
  font-size:24px;
  font-weight:700;
  line-height:34px;
  letter-spacing:-.02em;
}
.hero__title mark{ background:none; color:var(--blue); }

.hero__desc{
  margin-top:12px;
  font-size:13px;
  font-weight:400;
  line-height:16px;
  color:var(--navy-sub);
}

/* ---------- 서비스 카드 2×2 ---------- */
.menu{
  margin-top:24px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.menu__card{
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:24px;
  box-shadow:0 2px 10px rgba(19,35,91,.04);
}

.menu__ico{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
}
.menu__ico img{ width:25px;object-fit:contain; }

.menu__ico--demo   { background:linear-gradient(135deg,#FFB547 0%,#FF7A1A 100%); }
.menu__ico--fund   { background:linear-gradient(135deg,#FFD84D 0%,#F2A900 100%); }
.menu__ico--restore{ background:linear-gradient(135deg,#6FA8FF 0%,#2563EB 100%); }
.menu__ico--waste  { background:linear-gradient(135deg,#B494FF 0%,#7C4DFF 100%); }

.menu__label{
  font-size:19px;
  font-weight:700;
  line-height:25px;
  letter-spacing:-.02em;
  text-align:center;
}
.menu__label mark{ background:none; color:var(--blue); }


/* 카드 안 링크: 카드 전체를 클릭 영역으로, 정렬은 링크가 담당 */
.menu__card{ position:relative; }

.menu__link{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:inherit;
  text-decoration:none;
}
.menu__link::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
}

/* ---------- 신청 CTA ---------- */
.cta{
  margin-top:22px;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:24px;
  box-shadow:0 2px 10px rgba(19,35,91,.04);
  text-decoration:none;
  color:inherit;
  transition:transform .15s ease;
}
.cta:active{ transform:scale(.97); }

.cta__ico{
  width:38px;
  height:38px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:linear-gradient(135deg,#4ADE9B 0%,#16A34A 100%);
}
.cta__ico img{ width:22px; height:22px; object-fit:contain; }

.cta__label{
  font-size:20px;
  font-weight:700;
  line-height:24px;
  letter-spacing:-.02em;
}

/* ---------- 각주 ---------- */
.note{
  margin-top:23px;
  font-size:11px;
  font-weight:400;
  line-height:13px;
  text-align:center;
  color:var(--navy-mute);
}

/* =========================================================
   애니메이션
   - 진입: 위에서부터 순서대로 떠오른다
   - CTA: 페이지의 유일한 버튼이라 숨쉬듯 한 번씩 강조한다
   - fill-mode 는 backwards. 끝난 뒤 애니메이션 값이 남지 않아
     .cta:active 의 눌림 효과가 그대로 먹는다
   ========================================================= */
@keyframes rise{
  from{ opacity:0; transform:translateY(16px); }
  to  { opacity:1; transform:none; }
}
@keyframes ctaPulse{
  0%,100%{ box-shadow:0 2px 10px rgba(19,35,91,.04); }
  50%    { box-shadow:0 8px 22px rgba(22,163,74,.20); }
}
@keyframes icoPop{
  from{ opacity:0; transform:scale(.72); }
  60% { opacity:1; transform:scale(1.06); }
  to  { opacity:1; transform:none; }
}

.hero__title,
.hero__desc,
.menu__card,
.cta,
.note{
  animation:rise .55s cubic-bezier(.22,.61,.36,1) backwards;
}

.hero__title{ animation-delay:.05s; }
.hero__desc { animation-delay:.15s; }

.menu__card:nth-child(1){ animation-delay:.25s; }
.menu__card:nth-child(2){ animation-delay:.33s; }
.menu__card:nth-child(3){ animation-delay:.41s; }
.menu__card:nth-child(4){ animation-delay:.49s; }

/* 아이콘은 카드가 자리잡은 뒤 톡 올라온다 */
.menu__ico{ animation:icoPop .45s cubic-bezier(.34,1.3,.64,1) backwards; }
.menu__card:nth-child(1) .menu__ico{ animation-delay:.40s; }
.menu__card:nth-child(2) .menu__ico{ animation-delay:.48s; }
.menu__card:nth-child(3) .menu__ico{ animation-delay:.56s; }
.menu__card:nth-child(4) .menu__ico{ animation-delay:.64s; }

.cta{
  animation:rise .55s cubic-bezier(.22,.61,.36,1) .62s backwards,
            ctaPulse 2.6s ease-in-out 1.5s infinite;
}
.note{ animation-delay:.74s; }

/* 좁은 단말에서 글자만 살짝 줄인다 */
@media (max-width:359px){
  .hero__title{ font-size:22px; line-height:31px; }
  .menu__label{ font-size:17px; line-height:23px; }
  .cta__label { font-size:18px; }
}

@media (prefers-reduced-motion:reduce){
  .hero__title,
  .hero__desc,
  .menu__card,
  .menu__ico,
  .note,
  .cta{ animation:none; }
  .cta{ transition:none; }
}
