/* 랜딩 세 페이지(index · story · guide) 공용. 색은 앱과 같은 파랑 팔레트 안에서만 쓴다(카드 바탕만 흰색). */
:root {
  --bg: #FFFFFF;
  --tint: #DFE9F5;
  --surface: #FFFFFF;
  --ink: #002F5C;
  --ink-2: #00527C;
  --muted: #3E77B6;
  --line: #C5D4EB;
  --brand: #006DB2;
  --brand-hover: #00609C;
  --sky: #009DCF;
  --soft: #DFE9F5;
  --chip: #DFE9F5;
  --chip-ink: #00527C;
  --shadow: 0 1px 2px rgb(0 42 94 / .06), 0 12px 32px rgb(0 42 94 / .10);
  --f-display: "Gowun Batang", "Nanum Myeongjo", serif;
  --f-ui: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  /* 랜딩은 기기의 다크 모드와 관계없이 늘 밝은 색으로 보인다(앱도 같음) */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.65; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--brand); color: #FFFFFF; font: 600 15px/1 var(--f-ui); cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--brand-hover); }
.btn:focus-visible, .logo:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-light { background: #DFE9F5; color: #003B85; }
.btn-light:hover { background: #BBD2EC; }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 21px/1 var(--f-display); text-decoration: none; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.nav-links a:hover { background: var(--tint); color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.nav-links a:focus-visible, .nav-toggle:focus-visible, .foot-links a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 600 13.5px/1 var(--f-ui); cursor: pointer; }

/* 히어로: 계단 무늬 SVG 위에 글자와 카드 */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #006DB2, #003B85); color: #FFFFFF; padding: 88px 0 112px; }
/* 계단은 히어로 크기에 맞춰 늘어난다(맨 윗계단이 늘 오른쪽 위에 보이도록) */
.hero-stage { position: absolute; inset: 0; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 계단 끝 체크: 맨 윗계단(높이 40/460) 오른쪽 위 모서리를 딛고 선다 */
.goal { position: absolute; top: calc(40 / 460 * 100%); right: 2.4%; width: 44px; height: 32px; transform: translateY(calc(-100% + 3px)); }
.goal-check { position: relative; display: block; width: 100%; height: 100%; overflow: visible; opacity: .92; transform-origin: 36% 88%; filter: drop-shadow(0 2px 6px rgb(0 26 95 / .35)); }
.goal-ring { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid #009DCF; opacity: 0; transform: scale(.3); }
.goal-ring.r2 { border-color: #A3CEEF; }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #A3CEEF; opacity: 0; }
.spark:nth-of-type(even) { background: #FFFFFF; width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font: 700 clamp(34px, 5.2vw, 56px)/1.25 var(--f-display); letter-spacing: -.01em; }
.lead { margin-top: 20px; color: #DFE9F5; font-size: 18px; max-width: 30em; text-wrap: pretty; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }


/* 앱 미리보기 */
.preview { margin: 0; justify-self: end; width: 100%; max-width: 380px; background: #FFFFFF; border-radius: 20px; padding: 20px; box-shadow: 0 20px 48px rgb(0 26 95 / .35); display: grid; gap: 10px; color: #002F5C; font-size: 15px; }
.pv-head { font-weight: 600; font-size: 13.5px; color: #00527C; padding: 0 2px 2px; }
.pv-head b { margin-left: 4px; color: #006DB2; }
.pv-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #C5D4EB; border-radius: 12px; padding: 12px 14px; }
.pv-num { width: 22px; height: 22px; border-radius: 50%; background: #DFE9F5; color: #00527C; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.pv-box { width: 18px; height: 18px; border: 1.8px solid #4E97D1; border-radius: 5px; display: grid; place-items: center; transition: background-color .25s ease; }
.pv-box svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s ease; }
/* 줄 긋기는 배경 선으로 그려서 왼쪽부터 그어지는 움직임을 줄 수 있게 한다 */
.pv-title { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 0 1.5px; transition: background-size .5s ease, color .3s ease; }
.pv-num { transition: opacity .3s ease; }
.pv-card.done .pv-box { background: #4E97D1; }
.pv-card.done .pv-box svg { opacity: 1; }
.pv-card.done .pv-title { color: #3E77B6; background-size: 100% 1.5px; }
.pv-card.done .pv-num { opacity: .6; }

/* 섹션 공통 */
.sec { padding: 80px 0; }
.sec-tint { background: var(--tint); }
.sec-title { font: 700 clamp(24px, 3vw, 32px)/1.35 var(--f-display); color: var(--ink); text-wrap: balance; }
.sec-sub { margin-top: 10px; color: var(--ink-2); font-size: 17px; }

/* 카드 묶음 */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.card h3 { margin-top: 16px; font-size: 17px; font-weight: 700; color: var(--ink); }
.card p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* 이야기·가이드 머리 */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.page-head { padding: 64px 0 8px; }
.page-title { margin-top: 6px; font: 700 clamp(30px, 4.4vw, 44px)/1.3 var(--f-display); color: var(--ink); }

/* 브랜드 이야기 */
.story-hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.story-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; display: block; }
.story-bg .sb1 { fill: var(--tint); opacity: .7; }
.story-bg .sb2 { fill: var(--tint); opacity: .9; }
.story-bg .sb3 { fill: var(--line); opacity: .45; }
.story-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 28px; }
.brand-mark { width: clamp(200px, 36vw, 260px); height: auto; display: block; border-radius: 22%; box-shadow: var(--shadow); overflow: visible; }
.mk-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.story-copy { display: grid; gap: 18px; max-width: 36em; }
.story-copy p { color: var(--ink-2); font-size: 18px; line-height: 1.9; text-wrap: pretty; }

/* 자주 묻는 질문 */
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 700; color: var(--ink); font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 14px; }
.faq-item p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }

/* 시작 방법 */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #FFFFFF; font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 17px; font-weight: 700; color: var(--ink); padding-top: 3px; }
.steps p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* 하단(세 페이지 공통): 마무리 문구 · 시작 버튼 · 페이지 링크 · © 찬찬 */
.foot { padding: 72px 0 32px; background: var(--tint); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.foot-title { font: 700 clamp(22px, 3vw, 28px)/1.4 var(--f-display); color: var(--ink); text-wrap: balance; }
.foot-links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-links a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.foot-copy { color: var(--muted); }

/* 반응형 */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .preview { justify-self: start; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 64px; }
  .goal { right: 16px; width: 34px; height: 25px; }
  .lead, .sec-sub, .story-copy p { font-size: 16px; }
  .cta { flex-direction: column; align-items: stretch; }

  .preview { max-width: none; padding: 16px; }
  .sec { padding: 56px 0; }
  .cards-4, .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: 44px 0 0; }
  .story-hero { padding: 44px 0 72px; }
  .foot { padding: 56px 0 28px; }
}
/* 좁은 화면: 이야기·가이드 링크는 "메뉴"로 접는다 */
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + 6px); right: 0; left: auto; min-width: 180px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 10px; }
}
@media (max-width: 400px) {
  .btn-sm { padding: 9px 14px; font-size: 13px; }
  .logo { font-size: 19px; }
}
/* ── 효과 (작업 9) ─────────────────────────
   html.anim 은 스크립트가 "움직임 줄이기"가 꺼져 있을 때만 붙인다.
   붙지 않으면(움직임 줄이기 · 스크립트 없음) 처음부터 최종 모습이 보인다. */
@media (prefers-reduced-motion: no-preference) {
  /* 1) 히어로 계단: 아래 칸부터 한 칸씩 차오르고, 마지막에 꼭대기 체크가 그려진다(약 1.5초) */
  .anim .stairs .step { animation: stepRise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 120ms + var(--layer, 0ms)); }
  .anim .stairs-3 { --layer: 0ms; }
  .anim .stairs-2 { --layer: 60ms; }
  .anim .stairs-1 { --layer: 120ms; }
  /* 그리는 선은 그리기 시작할 때까지 opacity 0으로 숨긴다. 사파리는 길이 0인 둥근 끝(stroke-linecap: round)도 점으로 그리기 때문.
     그래서 fill-mode는 both가 아닌 forwards로 둔다(기다리는 동안 from의 opacity: 1이 먼저 걸리지 않게) */
  .anim .goal-check path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: drawCheck .45s ease-out 1.6s forwards; }
  @keyframes stepRise { from { transform: translateY(460px); } to { transform: none; } }
  @keyframes drawCheck { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }

  /* 2) 달성 효과: 체크가 1.0 → 1.18 → 1.0으로 톡, 하늘색 빛 고리가 퍼지며 사라지고, 반짝임 6개가 튄다(약 1초) */
  .goal.burst .goal-check { animation: goalPop .42s cubic-bezier(.3, 1.4, .5, 1); }
  .goal.burst .goal-ring { animation: goalRing .8s ease-out forwards; }
  .goal.burst .goal-ring.r2 { animation-delay: .12s; }
  .goal.burst .spark { animation: goalSpark .75s ease-out .08s both; }
  @keyframes goalPop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
  @keyframes goalRing { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.1); } }
  @keyframes goalSpark {
    0% { opacity: 0; transform: rotate(var(--a)) translateY(-6px) scale(.6); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(-40px) scale(1); }
  }

  /* 브랜드 이야기: 남색 'ㅈ'(가로획 → 두 다리)이 그려지고 → 하늘색 체크가 그려지며 6px 떠올랐다 서고 → 빛 고리 */
  .anim .brand-mark .mk { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; } /* 그리기 전에는 숨김(위 계단 끝 체크와 같은 이유) */
  .anim .brand-mark.play .mk-bar { animation: drawCheck .45s ease-out .1s forwards; }
  .anim .brand-mark.play .mk-leg { animation: drawCheck .5s ease-out .5s forwards; }
  .anim .brand-mark.play .mk-check { animation: drawCheck .45s ease-out 1.05s forwards; }
  .anim .brand-mark.play .mk-lift { animation: mkLift .75s cubic-bezier(.3, .8, .4, 1) 1.05s both; }
  .anim .brand-mark.play .mk-ring { animation: goalRing .8s ease-out 1.7s forwards; }
  .anim .brand-mark.play .mk-ring.r2 { animation-delay: 1.82s; }
  @keyframes mkLift { 0% { transform: translateY(0); } 55% { transform: translateY(-12px); } /* 로고 512칸 중 12칸 ≈ 화면에서 6px */ 100% { transform: translateY(0); } }
  /* 문단은 로고 다음에 하나씩 떠오른다(js/landing.js가 in을 붙인다) */
  .anim .seq { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .anim .seq.in { opacity: 1; transform: none; }

  /* 3) 스크롤 등장: 화면에 들어올 때 아래에서 부드럽게 떠오른다 */
  .anim .rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
  .anim .rv.in { opacity: 1; transform: none; }

  /* 4) 기능 카드: 마우스를 올리면 살짝 떠오르고 그림자가 진해진다 */
  @media (hover: hover) {
    .card { transition: transform .2s ease, box-shadow .2s ease, opacity .6s ease; }
    .anim .card.rv { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease; }
    .card:hover, .anim .card.rv.in:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(0 42 94 / .06), 0 16px 36px rgb(0 42 94 / .16); transition-delay: 0s; }
  }
}
/* 5) 움직임 줄이기: 모든 효과를 끄고 최종 모습으로 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ───── 디자인 v2: 입체 계단 히어로 ───── */
.lg-mark { display: block; width: auto; height: 28px; }
.dark-top .topbar { background: rgb(0 28 70 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgb(255 255 255 / .1); }
.dark-top .logo { color: #fff; }
.dark-top .nav-links a { color: #CFE1F6; }
.dark-top .nav-links a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.dark-top .nav-toggle { background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
.dark-top .nav-links.open { background: #00224f; border-color: rgb(255 255 255 / .15); }

.hero3d { background: radial-gradient(120% 90% at 78% 30%, #0b4f9c 0%, #062f66 45%, #021a40 100%); padding: 72px 0 96px; min-height: 640px; }
.h3-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.h3-bg .grid { position: absolute; inset: -20% -10% 0; background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(600px) rotateX(62deg) translateY(30%); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%); mask-image: linear-gradient(to top, #000 10%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb.o1 { width: 420px; height: 420px; right: 4%; top: -80px; background: #009DCF; opacity: .35; animation: orbA 9s ease-in-out infinite alternate; }
.orb.o2 { width: 360px; height: 360px; left: -80px; bottom: -120px; background: #3E77B6; opacity: .35; animation: orbA 11s ease-in-out infinite alternate-reverse; }
@keyframes orbA { to { transform: translate(-40px, 30px) scale(1.12); } }

.hero3d .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); color: #CFE6FA; font-size: 13.5px; font-weight: 500; }
.hero3d h1 { font-size: clamp(36px, 5.4vw, 60px); }
.grad { background: linear-gradient(90deg, #7FD3F0, #fff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.login-card { margin-top: 34px; max-width: 380px; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .06)); border: 1px solid rgb(255 255 255 / .22); box-shadow: 0 24px 60px rgb(0 10 40 / .45), inset 0 1px 0 rgb(255 255 255 / .25); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lc-title { font: 700 17px/1.3 var(--f-display); margin-bottom: 14px; }
.btn-google { width: 100%; background: #fff; color: #1f2d44; box-shadow: 0 6px 18px rgb(0 10 40 / .3); transition: transform .15s, box-shadow .15s; }
.btn-google:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgb(0 10 40 / .38); }
.lc-note { margin-top: 12px; font-size: 13px; color: #BBD2EC; line-height: 1.5; }

.stage3d { position: relative; display: grid; justify-items: center; align-content: center; perspective: 1100px; min-height: 440px; }
.st-tilt { position: relative; width: min(520px, 100%); transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.st-stairs { filter: drop-shadow(0 30px 40px rgb(0 8 30 / .5)); animation: stFloat 6s ease-in-out infinite; }
.st-stairs .stairs3d { width: 100%; height: auto; display: block; }
@keyframes stFloat { 50% { transform: translateY(-10px); } }
.st-goal.goal { right: auto; bottom: auto; width: 56px; height: 42px; transform: translate(-50%, -78%); pointer-events: none; }
.chip { position: absolute; padding: 9px 14px; border-radius: 14px; background: rgb(255 255 255 / .92); color: #003B85; font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 30px rgb(0 10 40 / .4); transform: translateZ(60px); animation: chipBob 5s ease-in-out infinite; white-space: nowrap; }
.chip b { color: #009DCF; }
.chip.c1 { left: -2%; top: 14%; }
.chip.c2 { right: -3%; bottom: 30%; animation-delay: -1.6s; }
.chip.c3 { left: 8%; bottom: 8%; animation-delay: -3s; background: #009DCF; color: #fff; }
@keyframes chipBob { 50% { transform: translateZ(60px) translateY(-9px); } }
.hero3d .preview { position: absolute; right: 0; bottom: -28px; width: 250px; padding: 14px; gap: 7px; font-size: 13px; transform: rotate(3deg); box-shadow: 0 28px 60px rgb(0 10 40 / .55); }
.hero3d .pv-card { padding: 8px 10px; }

/* 입체 계단: 아래 칸부터 솟아오른다 */
html.anim .st-stairs .s3 { opacity: 0; transform: translateY(40px); animation: stepUp .7s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: calc(.2s + var(--i) * .16s); }
@keyframes stepUp { to { opacity: 1; transform: none; } }
html.anim .st-goal { animation: goalIn .6s 1.3s cubic-bezier(.2,.9,.3,1.4) forwards; }
@keyframes goalIn { from { opacity: 0; margin-top: -30px; } to { opacity: 1; margin-top: 0; } }

/* 통계 */
.statband { background: #021a40; color: #fff; border-top: 1px solid rgb(255 255 255 / .08); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 34px; padding-bottom: 34px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font: 700 clamp(34px, 5vw, 52px)/1.1 var(--f-display); background: linear-gradient(180deg, #fff, #7FD3F0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #BBD2EC; font-size: 14px; }

/* 기능 카드: 입체 호버 */
.cards-4 { perspective: 900px; }
.card.tilt { transition: transform .2s ease-out, box-shadow .2s, background .2s; transform-style: preserve-3d; position: relative; overflow: hidden; }
.card.tilt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgb(0 157 207 / .16), transparent 60%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.card.tilt:hover { box-shadow: 0 22px 44px rgb(0 42 94 / .2); }
.card.tilt:hover::after { opacity: 1; }
.card-ic { background: linear-gradient(135deg, #006DB2, #009DCF) !important; color: #fff !important; box-shadow: 0 8px 18px rgb(0 109 178 / .35); }

.foot { background: linear-gradient(180deg, #062f66, #021a40); color: #BBD2EC; }
.foot-title { color: #fff; }
.foot a { color: #CFE6FA; }
.foot .btn { background: #fff; color: #003B85; }

@media (max-width: 900px) {
  .hero3d { padding: 44px 0 70px; min-height: 0; }
  .hero3d .hero-in { grid-template-columns: 1fr; gap: 12px; }
  .stage3d { min-height: 0; margin-top: 8px; padding-bottom: 36px; }
  .st-tilt { width: min(400px, 92%); }
  .hero3d .preview { width: 200px; right: 0; bottom: -24px; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .login-card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .orb, .st-stairs, .chip { animation: none; } }
.foot a[aria-current="page"] { color: #fff; font-weight: 700; }
.dark-top .topbar { background: rgb(2 26 64 / .88); }

/* 시안 수정: 라벨 테두리·글자 정리 */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 20px; background: none; border: 0; color: #9CCBF0; font: 600 13px/1 var(--f-ui); letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 26px; height: 10px; background: linear-gradient(90deg, #009DCF 0 33%, #4E97D1 33% 66%, #A3CEEF 66%); clip-path: polygon(0 100%, 0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%); }
.login-card { border: 0; box-shadow: 0 24px 60px rgb(0 10 40 / .45), inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 0 rgb(255 255 255 / .3); }
.lead { color: #DCEAF8; font-weight: 400; }

/* ───── 밝은 톤으로 재조정 ───── */
.hero3d { color: #002F5C; background: linear-gradient(180deg, #F3F8FE 0%, #D9E9F9 100%); }
.h3-bg .orb.o1 { background: #7FC4EE; opacity: .55; }
.h3-bg .orb.o2 { background: #A9CBF0; opacity: .6; }
.h3-bg .grid { background-image: linear-gradient(rgb(0 109 178 / .10) 1px, transparent 1px), linear-gradient(90deg, rgb(0 109 178 / .10) 1px, transparent 1px); }
.eyebrow { color: #3E77B6; }
.hero3d h1 { color: #002F5C; }
.grad { background: linear-gradient(90deg, #006DB2, #009DCF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero3d .lead { color: #28527F; }
.login-card { background: #fff; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 18px 44px rgb(0 60 130 / .16), 0 2px 6px rgb(0 60 130 / .08); }
.lc-title { color: #002F5C; font-family: var(--f-ui); font-weight: 700; font-size: 16px; }
.lc-note { color: #5B7FA8; }
.btn-google { background: #fff; color: #1f2d44; border: 1px solid #C5D4EB; box-shadow: none; }
.btn-google:hover { background: #F3F8FE; box-shadow: 0 6px 16px rgb(0 60 130 / .14); }
.st-stairs { filter: drop-shadow(0 26px 30px rgb(0 60 130 / .28)); }
.chip { box-shadow: 0 10px 24px rgb(0 60 130 / .18); }
.hero3d .preview { box-shadow: 0 22px 44px rgb(0 60 130 / .25); border: 1px solid #DCE8F6; }
.topbar { background: rgb(255 255 255 / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.statband { background: #fff; color: #002F5C; border-top: 0; border-bottom: 1px solid #E3ECF7; }
.stat b { background: linear-gradient(180deg, #006DB2, #009DCF); -webkit-background-clip: text; background-clip: text; }
.stat span { color: #3E77B6; }
.foot { background: #DFE9F5; color: #3E77B6; }
.foot-title { color: #002F5C; }
.foot a { color: #00527C; }
.foot .btn { background: #006DB2; color: #fff; }
.foot a[aria-current="page"] { color: #002F5C; }

/* v4: 하늘 계단 일러스트 */
.hero3d { background: linear-gradient(180deg, #EEF6FE 0%, #D3E7FA 100%); }
.hero3d h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.28; }
.sky-art { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px rgb(0 80 160 / .22); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.st-stairs, .chip { display: none; }
.hero3d .st-tilt { width: min(580px, 100%); }
.hero3d .preview { bottom: -34px; right: -8px; }
@media (max-width: 900px) { .hero3d .st-tilt { width: 100%; } .sky-art { border-radius: 22px; -webkit-mask-image: none; mask-image: none; } }

/* v5: 일러스트를 배경에 녹이기 */
.hero3d { background: linear-gradient(180deg, #B3DDF7 0%, #CFE9FA 45%, #E9F3FC 100%); }
.h3-bg .orb, .h3-bg .grid { display: none; }
.h3-bg::after { content: ""; position: absolute; right: -4%; top: 6%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgb(255 244 224 / .75), rgb(255 244 224 / 0)); }
.sky-art { border-radius: 0; box-shadow: none; -webkit-mask-image: radial-gradient(ellipse 62% 64% at 52% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 64% at 52% 50%, #000 52%, transparent 100%); transform: scale(1.18); transform-origin: 55% 50%; }
.hero3d .st-tilt { width: min(640px, 112%); margin-right: -6%; }
.hero3d .preview { box-shadow: 0 20px 44px rgb(0 80 160 / .22); }
.topbar { background: rgb(255 255 255 / .6); border-bottom-color: rgb(255 255 255 / .5); }
@media (max-width: 900px) { .sky-art { -webkit-mask-image: radial-gradient(ellipse 64% 62% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 64% 62% at 50% 50%, #000 50%, transparent 100%); transform: scale(1.1); } .hero3d .st-tilt { width: 104%; margin-right: 0; } }

/* v5b: 가장자리 완전 소거 + 글자 크기 축소 */
.sky-art { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 38%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 38%, transparent 98%); }
.hero3d h1 { font-size: clamp(26px, 3.5vw, 40px); line-height: 1.32; letter-spacing: -.02em; }
.hero3d .lead { font-size: 15.5px; margin-top: 16px; line-height: 1.7; }
.eyebrow { font-size: 12.5px; margin-bottom: 16px; }
.lc-title { font-size: 15px; }
.login-card { margin-top: 28px; }
@media (max-width: 900px) { .sky-art { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 36%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 36%, transparent 98%); } .hero3d h1 { font-size: clamp(25px, 7vw, 32px); } }
@media (max-width: 900px) {
  .hero3d h1 .grad { white-space: nowrap; font-size: min(6.6vw, 30px); }
  .hero3d .stage3d { padding-bottom: 8px; }
  .hero3d .preview { position: relative; right: auto; bottom: auto; width: 86%; max-width: 340px; margin: -64px auto 0; transform: rotate(-1.5deg); }
}

/* v6: 모바일 배치 — 문구 → 일러스트 → 로그인 카드 */
@media (max-width: 900px) {
  .hero3d .hero-in { display: flex; flex-direction: column; gap: 0; }
  .hero3d .hero-copy { display: contents; }
  .hero3d .eyebrow { order: 1; align-self: flex-start; }
  .hero3d h1 { order: 2; }
  .hero3d .lead { order: 3; }
  .hero3d .stage3d { order: 4; margin: 6px -24px 0; width: calc(100% + 48px); padding: 0; }
  .hero3d .st-tilt { width: 100%; margin: 0; }
  .sky-art { transform: scale(1.12); }
  .hero3d .preview { display: none; }
  .hero3d .login-card { order: 5; margin-top: -56px; position: relative; z-index: 2; }
  .hero3d { padding-bottom: 48px; }
}
@media (max-width: 900px) {
  .hero3d .hero-in { align-items: stretch; }
  .hero3d .stage3d { margin: 6px -16px 0; width: calc(100% + 32px); }
  .hero3d .login-card { max-width: none; width: 100%; }
}







/* 기능 소개: 계단처럼 올라가는 카드 + 그림 */
.sec { background: linear-gradient(180deg, #fff 0%, #EAF4FD 100%); }
.cards-4 { align-items: end; gap: 18px; padding-top: 84px; }
.card.sc { background: linear-gradient(165deg, #0B5FA6 0%, #006DB2 55%, #0A8CC4 100%); border: 0; color: #fff; padding: 18px 18px 24px; box-shadow: 0 18px 40px rgb(0 80 160 / .22), inset 0 1px 0 rgb(255 255 255 / .25); }
.card.sc h3 { color: #fff; font-size: 19px; margin-top: 16px; }
.card.sc p { color: rgb(255 255 255 / .86); font-size: 14.5px; }
.card.sc .sc-art { border-radius: 14px; background: linear-gradient(160deg, rgb(255 255 255 / .22), rgb(255 255 255 / .08)); padding: 10px; }
.card.sc .sc-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 961px) {
  .cards-4 > .sc:nth-child(1) { margin-bottom: 0; }
  .cards-4 > .sc:nth-child(2) { margin-bottom: 28px; }
  .cards-4 > .sc:nth-child(3) { margin-bottom: 56px; }
  .cards-4 > .sc:nth-child(4) { margin-bottom: 84px; }
}
@media (max-width: 960px) { .cards-4 { padding-top: 24px; } }
@media (max-width: 600px) {
  .cards-4 > .sc:nth-child(2) { margin-left: 14px; }
  .cards-4 > .sc:nth-child(3) { margin-left: 28px; }
  .cards-4 > .sc:nth-child(4) { margin-left: 42px; }
}
/* 그림 효과: 카드가 나타날 때 그려진다 */
@media (prefers-reduced-motion: no-preference) {
  .anim .sc .ck { stroke-dasharray: 20; stroke-dashoffset: 20; }
  .anim .sc .st { transform-origin: left; transform: scaleX(0); }
  .anim .sc .bars rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
  .anim .sc .ln { stroke-dasharray: 200; stroke-dashoffset: 200; }
  .anim .sc .dots circle, .anim .sc .today { opacity: 0; }
  .anim .sc .hl { transform-origin: left; transform: scaleX(0); }
  .anim .sc.on .ck { stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease .5s; }
  .anim .sc.on .r2 .ck { transition-delay: .9s; }
  .anim .sc.on .st { transform: scaleX(1); transition: transform .5s ease .8s; }
  .anim .sc.on .r2 .st { transition-delay: 1.2s; }
  .anim .sc.on .bars rect { transform: scaleY(1); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
  .anim .sc.on .bars rect:nth-child(2) { transition-delay: .1s; } .anim .sc.on .bars rect:nth-child(3) { transition-delay: .2s; } .anim .sc.on .bars rect:nth-child(4) { transition-delay: .3s; } .anim .sc.on .bars rect:nth-child(5) { transition-delay: .4s; }
  .anim .sc.on .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1s ease .6s; }
  .anim .sc.on .dots circle, .anim .sc.on .today { opacity: 1; transition: opacity .4s ease .6s; }
  .anim .sc.on .dots circle:nth-child(2) { transition-delay: .9s; } .anim .sc.on .dots circle:nth-child(3) { transition-delay: 1.2s; } .anim .sc.on .today { transition-delay: 1.5s; }
  .anim .sc.on .hl { transform: scaleX(1); transition: transform .6s ease .6s; }
}

/* 모바일: 스크롤 없는 한 화면 — 위는 하늘 일러스트와 문구, 아래는 로그인 시트 */
@media (max-width: 900px) {
  html:has(body[data-page="home"]), body[data-page="home"] { height: 100%; overflow: hidden; }
  body[data-page="home"] .sec, body[data-page="home"] .foot, body[data-page="home"] .statband { display: none; }
  body[data-page="home"] main { height: calc(100dvh - 65px); }
  .hero3d { position: relative; height: 100%; min-height: 0; padding: 0; overflow: hidden; }
  .hero3d .wrap.hero-in { position: relative; height: 100%; padding: 0 22px; display: block; }
  .hero3d .hero-copy { display: block; position: static; padding-top: 22px; }
  .hero3d .eyebrow, .hero3d h1, .hero3d .lead { position: relative; z-index: 3; order: 0; }
  .hero3d .lead { font-size: 14.5px; margin-top: 12px; }
  .hero3d .stage3d { position: absolute; z-index: 1; left: 0; right: 0; width: 100%; margin: 0; padding: 0; top: 150px; bottom: 120px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
  .hero3d .st-tilt { width: 118%; margin: 0; flex: none; }
  .sky-art { transform: none; }
  .hero3d .login-card { display: block; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; margin: 0; order: 0;
    padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; text-align: center;
    box-shadow: 0 -14px 40px rgb(0 70 140 / .18); }
  .hero3d .login-card::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: #D4E2F0; }
  .hero3d .login-card .btn { width: 100%; }
  .hero3d .lc-note { margin-top: 12px; }
}

/* 모바일: 일러스트를 문구 뒤 배경으로 크게 */
@media (max-width: 900px) {
  .hero3d .stage3d { top: 0; bottom: 96px; align-items: flex-end; justify-content: flex-end; }
  .hero3d .st-tilt { width: 150%; margin-right: -22%; }
}
@media (max-width: 900px) {
  .hero3d .stage3d { top: 150px; bottom: 70px; align-items: center; }
  .hero3d .st-tilt { width: 175%; margin-right: -30%; }
}

/* 모바일: 일러스트는 문구 뒤 배경으로만(영역 축소), 아래 시트가 나머지를 채운다 */
@media (max-width: 900px) {
  .hero3d .stage3d { top: 40px; bottom: auto; height: 270px; align-items: center; justify-content: flex-end; }
  .hero3d .st-tilt { width: 130%; margin-right: -14%; }
  .hero3d .login-card { top: 290px; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-top: 30px; }
  .hero3d .login-card .lc-title { font-size: 17px; }
  .hero3d .login-card .lc-note { margin-top: 0; }
}
@media (max-width: 900px) {
  .hero3d { --off: max(22px, calc((100dvh - 65px - 190px - 270px) / 4)); }
  .hero3d .hero-copy { padding-top: var(--off); }
  .hero3d .stage3d { top: calc(var(--off) + 18px); }
  .hero3d .login-card { top: auto; bottom: 0; display: block; padding-top: 28px; }
  .hero3d .login-card .lc-title { font-size: 15px; margin-bottom: 14px; }
  .hero3d .login-card .lc-note { margin-top: 12px; }
}
@media (max-width: 900px) { .hero3d .stage3d { overflow: visible; } .hero3d { overflow: hidden; } }
/* 모바일: 공백 제거 — 계단은 문구 뒤에서 로그인 시트 위까지 이어진다 */
@media (max-width: 900px) {
  .hero3d { --off: 22px; }
  .hero3d .stage3d { top: 60px; bottom: 150px; height: auto; align-items: flex-end; justify-content: flex-end; }
  .hero3d .st-tilt { width: max(150%, calc((100dvh - 65px - 150px) * .95)); margin-right: -20%; }
}
/* 모바일: 계단 배경은 문구 뒤에만, 로그인 시트를 바로 아래에 붙인다 */
@media (max-width: 900px) {
  .hero3d .stage3d { top: 70px; bottom: auto; height: 270px; align-items: center; justify-content: flex-end; }
  .hero3d .st-tilt { width: 135%; margin-right: -16%; }
  .hero3d .login-card { top: 335px; bottom: 0; display: flex; flex-direction: column; justify-content: space-evenly; padding: 30px 22px calc(24px + env(safe-area-inset-bottom)); }
  .hero3d .login-card .lc-title { font-size: 18px; margin: 0; }
  .hero3d .login-card .btn { height: 56px; }
  .hero3d .login-card .lc-note { margin: 0; }
}
@media (max-width: 900px) { .hero3d .login-card { justify-content: center; gap: 22px; } }

/* 카카오 로그인 버튼 */
.btn-kakao { width: 100%; background: #FEE500; color: #191919; border: 0; box-shadow: none; gap: 8px; }
.btn-kakao:hover { background: #F5DC00; box-shadow: 0 6px 16px rgb(60 50 0 / .18); }
.login-card .btn + .btn { margin-top: 10px; }
.lc-flash { animation: lcFlash .9s ease; }
@keyframes lcFlash { 0%, 100% { box-shadow: 0 18px 44px rgb(0 60 130 / .16); } 40% { box-shadow: 0 0 0 5px rgb(0 157 207 / .45), 0 18px 44px rgb(0 60 130 / .22); } }
@media (max-width: 900px) { .hero3d .login-card { gap: 0; justify-content: center; } .hero3d .login-card .lc-title { margin-bottom: 18px; } .hero3d .login-card .btn + .btn { margin-top: 12px; } .hero3d .login-card .lc-note { margin-top: 18px; } }

/* 로그인 후 화면 예시 */
.ex-sec { background: linear-gradient(180deg, #EAF4FD 0%, #D3E7FA 100%); padding-bottom: 72px; }
.ex-stage { position: relative; margin-top: 36px; }
.ex-pc { background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgb(0 70 140 / .25); overflow: hidden; border: 1px solid rgb(0 60 130 / .12); width: min(100%, 880px); }
.ex-bar { height: 28px; background: #EEF3F9; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.ex-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C5D4EB; }
.ex-app { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 380px; }
.ex-side { background: #fff; border-right: 1px solid #E8ECF1; padding: 14px 10px; display: grid; align-content: start; gap: 4px; font-size: 12.5px; color: #3A3F47; }
.ex-side span { padding: 8px 10px; border-radius: 8px; }
.ex-side .on { background: #F1F3F5; font-weight: 700; color: #111827; }
.ex-side .g { font-size: 11px; color: #8A93A0; padding: 12px 10px 4px; border-top: 1px solid #EEF1F5; margin-top: 6px; border-radius: 0; }
.ex-brand { display: flex; align-items: center; gap: 6px; font: 700 15px/1 var(--f-display); color: #111827; margin: 0 0 10px 6px; }
.ex-main { background: #E4EFFB; }
.ex-band { background: linear-gradient(100deg, #CFE6FA, #8FC3EE); padding: 16px 18px 14px; color: #003B85; }
.ex-band small { display: block; font-size: 10px; letter-spacing: .08em; font-weight: 700; color: #2A5F96; }
.ex-band strong { display: block; font: 400 24px/1.2 var(--f-display); margin-top: 2px; }
.ex-band em { font-style: normal; color: #009DCF; }
.ex-week { display: flex; gap: 6px; margin-top: 10px; }
.ex-week i { font-style: normal; width: 30px; padding: 5px 0; text-align: center; font-size: 11px; font-weight: 700; color: #3E77B6; background: rgb(255 255 255 / .7); border-radius: 10px; }
.ex-week i.on { background: #006DB2; color: #fff; }
.ex-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.ex-col { background: #D3E3F5; border-radius: 14px; padding: 12px 8px 8px; box-shadow: inset 0 4px 0 var(--c); display: grid; gap: 6px; align-content: start; }
.ex-col h5 { margin: 0 4px 2px; font-size: 12px; color: #00264F; }
.ex-col h5 i { font-style: normal; color: #006DB2; margin-left: 2px; }
.ex-t { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #A8C4E3; border-radius: 10px; padding: 8px 8px; box-shadow: 0 3px 8px rgb(0 50 110 / .16); font-size: 11.5px; color: #00264F; }
.ex-t b { width: 16px; height: 16px; border-radius: 50%; background: #DFE9F5; color: #3E77B6; font-size: 9px; display: grid; place-items: center; flex: none; }
.ex-ck { width: 14px; height: 14px; border-radius: 5px; border: 1.6px solid #5B8FC7; flex: none; position: relative; }
.ex-t.done .ex-ck { background: #006DB2; border-color: #006DB2; }
.ex-t.done .ex-ck::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(40deg); }
.ex-t.done span { text-decoration: line-through; opacity: .6; }
.ex-t span { display: grid; gap: 2px; min-width: 0; }
.ex-t em { font-style: normal; font-size: 9.5px; color: #3E77B6; display: flex; align-items: center; gap: 4px; }
.ex-t em u { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ex-phone { position: absolute; right: 0; bottom: -28px; width: 200px; background: #fff; border-radius: 28px; border: 6px solid #0B2A52; box-shadow: 0 30px 60px rgb(0 50 110 / .35); overflow: hidden; }
.ex-notch { height: 14px; background: #0B2A52; width: 70px; margin: 0 auto; border-radius: 0 0 10px 10px; }
.ex-phone .ex-band { padding: 12px 12px 10px; }
.ex-phone .ex-band strong { font-size: 18px; }
.ex-phone .ex-board { grid-template-columns: 1fr; background: #E4EFFB; padding: 10px; }
.ex-tab { display: flex; justify-content: space-around; padding: 10px; background: #fff; border-top: 1px solid #E8ECF1; }
.ex-tab i { width: 16px; height: 16px; border-radius: 5px; background: #C9DEF1; }
.ex-tab i.on { background: #006DB2; }
@media (prefers-reduced-motion: no-preference) {
  .anim .ex-t { opacity: 0; transform: translateY(8px); }
  .anim .on .ex-t { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
  .anim .ex-col:nth-child(2) .ex-t { transition-delay: .25s; } .anim .ex-col:nth-child(3) .ex-t { transition-delay: .5s; }
}
@media (max-width: 900px) {
  .ex-pc { display: none; }
  .ex-phone { position: relative; right: auto; bottom: auto; margin: 0 auto; width: min(260px, 100%); }
  .ex-sec { padding-bottom: 48px; }
}

/* PC: 랜딩에는 로그인 카드를 두지 않고, 시작하기를 누르면 로그인 화면으로 */
.hero-cta { display: none; margin-top: 28px; }
@media (min-width: 901px) {
  .hero3d .login-card { display: none; }
  .hero3d .hero-cta { display: inline-flex; }
}

/* 로그인 화면: 왼쪽 일러스트, 오른쪽 로그인 */
.login-page { background: #fff; }
.lg-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.lg-art { position: relative; overflow: hidden; padding: 28px 44px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, #B3DDF7 0%, #CFE9FA 55%, #E9F3FC 100%); }
.lg-art::before { content: ""; position: absolute; inset: 0; background: url(../images/sky-stairs.jpg) right bottom / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 62%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 60% 62%, #000 40%, transparent 100%); opacity: .95; }
.lg-logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font: 700 22px/1 var(--f-display); color: #002F5C; text-decoration: none; }
.lg-copy { position: relative; z-index: 2; padding-bottom: 8vh; }
.lg-copy h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.32; letter-spacing: -.02em; }
.lg-form { display: grid; place-items: center; padding: 32px 24px; }
.lg-box { width: min(400px, 100%); display: grid; gap: 14px; }
.lg-box h2 { font: 700 28px/1.2 var(--f-display); color: #002F5C; margin: 0; }
.lg-sub { margin: 0 0 8px; color: #3E77B6; font-size: 15px; }
.lg-box .btn { width: 100%; height: 54px; }
.lg-box .lc-note { margin: 6px 0 0; text-align: center; }
.lg-back { text-align: center; color: #3E77B6; font-size: 14px; text-decoration: underline; margin-top: 6px; }
.lg-logo-m { display: none; }
@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; }
  .lg-art { padding: 20px 22px; }
  .lg-copy { padding-bottom: 14px; }
  .lg-copy h1 { font-size: 24px; }
  .lg-form { border-radius: 28px 28px 0 0; margin-top: -24px; position: relative; z-index: 3; background: #fff; box-shadow: 0 -14px 40px rgb(0 70 140 / .18); align-items: start; padding-top: 34px; }
  html, body { height: auto; overflow: auto; }
}

/* 브랜드 이야기·사용 가이드: 하늘 계단 배경을 깔고, 문단 사이 빈 공간을 줄인다 */
.story-hero, .page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #B3DDF7 0%, #CFE9FA 55%, #E9F3FC 100%); }
.story-hero::before, .page-head::before { content: ""; position: absolute; inset: 0; background: url(../images/sky-stairs.jpg) right center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 70% 90% at 78% 50%, #000 35%, transparent 100%); opacity: .9; pointer-events: none; }
.story-bg { display: none; }
.story-hero { padding: 48px 0 56px; }
.page-head { padding: 56px 0 44px; }
.story-in, .page-head .wrap { position: relative; z-index: 1; }
.story-in { gap: 18px; }
.story-copy { gap: 12px; }
.story-copy p { color: #1E4F86; line-height: 1.8; }
.page-head .sec-sub { color: #1E4F86; margin-top: 8px; }
.sec { padding: 56px 0; }
@media (max-width: 600px) { .story-hero { padding: 36px 0 44px; } .page-head { padding: 40px 0 32px; } .sec { padding: 40px 0; } }
.story-hero::before { opacity: .6; }

/* 맨 아래 시작하기 버튼을 없앤 만큼 아래 여백을 줄인다 */
.foot { padding: 44px 0 24px; }
.foot-in { gap: 14px; }
.foot-links { margin-top: 6px; }
.hero-cta { display: none !important; }

/* 로그인: 문구는 위, 계단 그림은 잘리지 않게 아래에 통째로 */
.lg-art { justify-content: flex-start; gap: 36px; }
.lg-copy { padding-bottom: 0; }
.lg-art::before { background: url(../images/sky-stairs.jpg) center bottom / 100% auto no-repeat; opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
@media (max-width: 900px) { .lg-art::before { background-size: cover; background-position: right bottom; } }


/* ───── 랜딩 메인 모션(움직임 줄이기가 꺼져 있을 때만) ───── */
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sky-rise { position: relative; will-change: transform; transition: translate .25s ease-out;
  translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0 33.3%, #000 66.6%); mask-image: linear-gradient(to bottom, transparent 0 33.3%, #000 66.6%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
html.anim .fx i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, rgb(255 255 255 / 0) 72%); box-shadow: 0 0 14px 3px rgb(255 255 255 / .75); opacity: 0;
  animation: fxUp var(--d) ease-in var(--w) infinite; }
@keyframes fxUp { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(-60px, -560px) scale(1.1); opacity: 0; } }
html.anim .sky-rise { animation: skyRise 2.8s cubic-bezier(.25, .7, .2, 1) .1s backwards; }
@keyframes skyRise {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; scale: .9; filter: blur(6px); }
  60% { filter: blur(0); }
  to { -webkit-mask-position: 0 100%; mask-position: 0 100%; scale: 1; }
}
html.anim .sky-art { animation: skyFloat 7s ease-in-out 3s infinite alternate; }
@keyframes skyFloat { to { translate: 0 -16px; } }
html.anim .hero-copy > * { animation: heroIn 1s cubic-bezier(.2, .8, .2, 1) backwards; }
html.anim .hero-copy > .eyebrow { animation-delay: .1s; }
html.anim .hero-copy > h1 { animation-delay: .3s; }
html.anim .hero-copy > .lead { animation-delay: .6s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(36px); filter: blur(10px); } }
html.anim .hero3d .grad { background: linear-gradient(100deg, #006DB2 0%, #009DCF 30%, #7FE3FF 50%, #009DCF 70%, #006DB2 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; animation: shimmer 4.5s linear 1.4s infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
html.anim .hero3d .preview { animation: pvIn 1.2s cubic-bezier(.2, 1.2, .3, 1) 2s backwards, pvFloat 5s ease-in-out 3.4s infinite alternate; }
@keyframes pvIn { from { opacity: 0; transform: translate(70px, 50px) rotate(16deg) scale(.7); } }
@keyframes pvFloat { to { translate: 0 -10px; } }
html.anim .hero3d .pv-card { animation: pvCardIn .6s cubic-bezier(.2, .9, .3, 1.2) backwards; }
html.anim .hero3d .pv-card:nth-of-type(1) { animation-delay: 2.5s; }
html.anim .hero3d .pv-card:nth-of-type(2) { animation-delay: 2.7s; }
html.anim .hero3d .pv-card:nth-of-type(3) { animation-delay: 2.9s; }
@keyframes pvCardIn { from { opacity: 0; transform: translateX(26px); } }
html.anim .hero3d::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); transform: skewX(-18deg); animation: sweep 2.4s ease-in-out 1.2s 1 both; }
@keyframes sweep { from { left: -40%; opacity: 1; } to { left: 120%; opacity: 0; } }
html.anim .hero3d .btn-sm, html.anim .topbar { animation: heroIn .8s ease-out backwards; }

/* 브랜드 이야기·사용 가이드: 그림을 잘라 쓰지 않고 오른쪽에 통째로 */
.story-hero::before, .page-head::before { inset: 0 0 0 auto; width: 40%; background: url(../images/sky-stairs.jpg) right bottom / contain no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); opacity: 1; }
@media (max-width: 900px) { .story-hero::before, .page-head::before { width: 80%; opacity: .35; } }
.story-hero::before, .page-head::before {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 28%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.story-hero::before, .page-head::before { inset: auto 0 0 auto; height: auto; aspect-ratio: 1176 / 896; max-height: 100%; background-size: 100% 100%; }

/* 로그인 v19: 사진을 패널 전체 배경으로 깔고, 글자는 그 위에 자연스럽게(글자 뒤는 은은히 밝혀 읽기 좋게) */
.lg-art { justify-content: space-between; gap: 0; }
.lg-copy { padding-bottom: 7vh; }
.lg-art::before { background: url(../images/sky-stairs.jpg) 88% 18% / auto 108% no-repeat; -webkit-mask-image: none; mask-image: none; }
.lg-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgb(236 246 254 / .94) 0%, rgb(236 246 254 / .72) 24%, rgb(236 246 254 / 0) 48%), radial-gradient(60% 22% at 18% 4%, rgb(179 221 247 / .7), transparent 100%); }
@media (max-width: 900px) { .lg-art::before { background-size: cover; background-position: 80% 20%; } }
.lg-copy h1 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; font-weight: 700; }
.lg-copy .eyebrow { font-size: 12.5px; }
