/* =========================================================
   메모리 모먼트 × 시니어웰니스클럽
   모바일 앱 스타일 (연회색 바탕 + 흰 둥근 카드 + 하단 CTA)
   ========================================================= */
:root{
  --bg:#F2F4F6;          /* 앱 바탕 */
  --card:#FFFFFF;        /* 카드 */
  --t1:#191F28;          /* 제목 */
  --t2:#4E5968;          /* 본문 */
  --t3:#8B95A1;          /* 보조 */
  --line:#EEF0F3;
  --g:#1E8E5E;           /* 웰니스 그린 (메인) */
  --g-d:#167349;
  --g-soft:#E6F5EC;      /* 연한 그린 (보조 버튼, 타일) */
  --g-banner:#D8EEE1;    /* 배너 */
  --warm:#FFF1DA;
  --blue:#E6EEFD;
  --pink:#FDEBEC;
  --r:24px;
}
*{box-sizing:border-box}
html,body{margin:0;background:#E5E8EB}
body{font-family:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:var(--t1);word-break:keep-all;-webkit-font-smoothing:antialiased;letter-spacing:-.2px}

/* ---------- 앱 프레임 (모바일 최적 폭) ---------- */
.swc{max-width:430px;margin:0 auto;background:var(--bg);overflow:hidden;position:relative}
@media (min-width:431px){.swc{box-shadow:0 10px 40px rgba(0,0,0,.08)}}
.swc-track{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none}
.swc-track::-webkit-scrollbar{display:none}

.card{flex:0 0 100%;width:100%;height:100svh;min-height:560px;scroll-snap-align:start;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}

/* ---------- 상단 앱바 ---------- */
.appbar{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 10px;flex-shrink:0}
.back{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--t1);text-decoration:none}
.back svg{width:24px;height:24px}
.back:active{background:rgba(0,0,0,.05)}
.appbar-title{font-size:16px;font-weight:700;color:var(--t1)}
.count{width:44px;text-align:center;font-size:14px;font-weight:600;color:var(--t3)}
.progress{height:4px;margin:0 20px;background:#E1E5E9;border-radius:4px;overflow:hidden;flex-shrink:0}
.progress span{display:block;height:100%;background:var(--g);border-radius:4px}

/* ---------- 본문 ---------- */
.body{flex:1;min-height:0;overflow-y:auto;padding:22px 20px 12px;display:flex;flex-direction:column;text-align:center}
.body.center{justify-content:center}
.body > *{flex-shrink:0}

h2{font-size:25px;line-height:1.42;font-weight:800;letter-spacing:-.6px;margin:0 0 10px;color:var(--t1)}
h2.xl{font-size:28px}
.em{color:var(--g)}
.sub{font-size:17px;line-height:1.6;color:var(--t2);margin:0 0 22px}
.note{font-size:13.5px;line-height:1.6;color:var(--t3);margin:14px 4px 0}
.ask{font-size:20px;font-weight:800;color:var(--t1);margin:22px 0 0}
.pill-badge{align-self:center;display:inline-flex;align-items:center;gap:6px;background:var(--g-soft);color:var(--g);font-size:14px;font-weight:700;padding:7px 14px;border-radius:999px;margin-bottom:14px}

/* ---------- 배너 일러스트 ---------- */
.banner{position:relative;height:150px;border-radius:var(--r);background:var(--g-banner);margin:6px 0 26px;display:flex;align-items:flex-end;justify-content:center;gap:4px;padding-bottom:4px}
.banner.sm{height:118px;margin-bottom:22px}
.banner.warm{background:#FBE8C6}
.banner.blue{background:#DCE6FB}
.banner .fig{font-size:70px;line-height:1;transform:translateY(10px)}
.banner.sm .fig{font-size:56px;transform:translateY(6px)}
.banner .fig.mid{font-size:44px;transform:translateY(-34px)}
.banner.sm .fig.mid{font-size:36px;transform:translateY(-26px)}
/* 1페이지 첨부 일러스트 (회색 바탕을 배너색에 자연스럽게 섞음) */
.banner.hero-art{height:210px;padding:0;overflow:hidden;background:#EAF5EE;align-items:flex-end}
.hero-art img{display:block;height:118%;width:auto;max-width:none;filter:brightness(1.1) contrast(1.15);mix-blend-mode:multiply;transform:translateY(-2%)}
@media (max-height:700px){.banner.hero-art{height:160px}}
.spark{position:absolute;color:#fff;font-style:normal;font-size:16px;line-height:1}
.spark.s1{left:14%;top:22%}
.spark.s2{left:26%;top:58%;font-size:11px}
.spark.s3{right:16%;top:18%;font-size:13px}
.spark.s4{right:24%;top:56%;font-size:18px}

/* ---------- 흰 카드 & 목록 ---------- */
.box{background:var(--card);border-radius:var(--r);padding:4px 20px;margin:0;list-style:none}
.box.pad{padding:22px 20px}
.row{padding:18px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:8px}
.row:last-child{border-bottom:0}
.row p{margin:0;font-size:17px;line-height:1.6;color:var(--t1)}
.row p b{color:var(--g)}
.row .label{font-size:12.5px;font-weight:800;color:var(--g);letter-spacing:.6px}
.row .t{font-size:18px;font-weight:700;color:var(--t1)}
.row .d{font-size:15px;line-height:1.5;color:var(--t2)}
.tile{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:24px;background:var(--g-soft);flex-shrink:0}
.tile.warm{background:var(--warm)}
.tile.blue{background:var(--blue)}
.tile.pink{background:var(--pink)}
.tile.big{width:60px;height:60px;font-size:30px;border-radius:18px;margin:0 auto 12px}

/* 단어 */
.word-row{flex-direction:row;justify-content:center;gap:14px;padding:16px 0}
.word{font-size:26px;font-weight:800;color:var(--t1);letter-spacing:-.5px;min-width:90px;text-align:left}

/* 단어 사진 카드 (가로 3열) */
.word-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wcard{position:relative;background:var(--card);border-radius:20px;padding:8px 8px 14px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 14px rgba(25,31,40,.05)}
.wcard img{display:block;width:100%;aspect-ratio:1/1;height:auto;object-fit:cover;border-radius:14px;background:var(--bg)}
.wcard b{margin-top:12px;font-size:21px;font-weight:800;letter-spacing:-.5px;color:var(--t1);white-space:nowrap}
.wnum{position:absolute;top:14px;left:14px;z-index:1;width:24px;height:24px;border-radius:50%;background:var(--g);color:#fff;font-size:12.5px;font-weight:800;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.2)}
@media (max-width:360px){.wcard b{font-size:18px}}

/* 질문 */
.qs .row{padding:16px 0;gap:6px}
.qnum{font-size:13px;font-weight:800;color:var(--g);background:var(--g-soft);border-radius:999px;padding:4px 10px}
.qs p{font-size:18px;font-weight:700}
.qs .key{background:var(--g-soft);border-radius:16px;margin:6px -8px 10px;border-bottom:0}
.qs .key .qnum{background:var(--g);color:#fff}

/* 질문 한 페이지에 하나씩 (5~9페이지) */
.qpage-num{align-self:center;display:inline-block;background:var(--g-soft);color:var(--g);font-size:15px;font-weight:800;padding:7px 16px;border-radius:999px;margin-bottom:18px}
.qpage-box{background:var(--card);border-radius:var(--r);padding:34px 20px 36px;box-shadow:0 6px 20px rgba(25,31,40,.05)}
.qpage-box p{margin:0;font-size:29px;line-height:1.45;font-weight:800;letter-spacing:-.6px;color:var(--t1)}
.qdots{display:flex;justify-content:center;gap:8px;margin-top:22px}
.qdots i{width:8px;height:8px;border-radius:8px;background:#D5DAE0;transition:.2s}
.qdots i.done{background:#9AD3B5}
.qdots i.on{width:24px;background:var(--g)}
.card.is-active .qpage-box{animation:qpop .5s cubic-bezier(.2,.9,.3,1.25) both}
@keyframes qpop{0%{opacity:0;transform:translateY(16px) scale(.94)}100%{opacity:1;transform:none}}
@media (max-height:700px){.qpage-box{padding:26px 18px}.qpage-box p{font-size:25px}}
@media (prefers-reduced-motion:reduce){.card.is-active .qpage-box{animation:none}}

/* 회상 */
.slot{flex-direction:row;justify-content:center;gap:12px;font-size:18px;font-weight:700;color:var(--t2)}
.slot i{font-style:normal;width:30px;height:30px;border-radius:50%;background:var(--g);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800}
.slot span{min-width:110px;text-align:left;border-bottom:2px dashed #CDD3D9;padding-bottom:2px}

/* 타이머 */
.timer{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px}
.ring{--p:0;width:48px;height:48px;border-radius:50%;background:conic-gradient(var(--g) calc(var(--p)*1%),#DCE1E6 0);display:grid;place-items:center;flex-shrink:0}
.ring span{width:38px;height:38px;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-size:16px;font-weight:800;color:var(--g)}
.timer p{margin:0;font-size:16px;font-weight:600;color:var(--t2)}

/* 큰 타이머 (10페이지 떠올리기) */
.timer.lg{flex-direction:column;gap:18px;margin-top:10px;background:var(--card);border-radius:var(--r);padding:34px 20px 30px;box-shadow:0 6px 20px rgba(25,31,40,.05)}
.timer.lg .ring{width:150px;height:150px}
.timer.lg .ring span{width:124px;height:124px;background:var(--card);font-size:46px}
.timer.lg p{font-size:18px;font-weight:700;color:var(--t1)}
@media (max-height:700px){.timer.lg{padding:24px 18px}.timer.lg .ring{width:120px;height:120px}.timer.lg .ring span{width:98px;height:98px;font-size:38px}}

/* 12페이지: 가로형 일러스트 + 이야기 글 */
.banner.art-wide{height:auto;padding:14px 10px 0;overflow:hidden;align-items:flex-end;margin:4px 0 24px}
.art-wide img{display:block;width:100%;height:auto;mix-blend-mode:multiply;filter:brightness(1.08) contrast(1.15)}
.story{margin:0 0 18px;font-size:16.5px;line-height:1.75;color:var(--t2)}
.story b{color:var(--t1);font-weight:700}
.story-box{background:var(--card);border-radius:var(--r);padding:20px 18px;margin:0 0 18px}
.story-box p{margin:0;font-size:16.5px;line-height:1.75;color:var(--t2)}
.story-box b{display:inline-block;margin-top:6px;color:var(--g);font-weight:800}
.invite{margin:8px 0 6px;padding:22px 0 4px;border-top:1px solid #E1E5E9}
.invite p{margin:0 0 6px;font-size:17px;color:var(--t2)}
.invite strong{display:block;font-size:22px;font-weight:800;letter-spacing:-.5px;color:var(--t1)}

/* 11페이지: 친구에게 공유 (개수 선택 후 등장) */
.share-row{display:none;margin-bottom:10px;text-align:center}
.share-row.show{display:block;animation:qpop .45s cubic-bezier(.2,.9,.3,1.25) both}
.btn.btn-share{height:52px;background:var(--g-soft);color:var(--g);font-size:17px;gap:8px}
.btn.btn-share:active{background:#D3EDDD}
.kakao-ico{width:28px;height:28px;border-radius:9px;background:#FEE500;display:grid;place-items:center;flex-shrink:0}
.kakao-ico svg{width:18px;height:18px}
.share-msg{margin:8px 0 0;font-size:14px;font-weight:600;color:var(--g)}
.share-msg:empty{display:none}
.share-url{display:block;margin-top:6px;padding:10px 12px;background:var(--card);border-radius:12px;font-size:13px;font-weight:500;color:var(--t1);word-break:break-all;-webkit-user-select:all;user-select:all}
@media (prefers-reduced-motion:reduce){.share-row.show{animation:none}}

/* 정답 확인 */
.reveal{background:var(--g);color:#fff;border-radius:var(--r);padding:20px 16px 22px;position:relative;overflow:hidden}
.reveal::after{content:"";position:absolute;right:-26px;top:-26px;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.12)}
.reveal small{font-size:12px;letter-spacing:2px;font-weight:700;opacity:.85}
.reveal .chips{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap;position:relative;z-index:1}
.reveal .chips span{background:#fff;color:var(--t1);padding:9px 14px;border-radius:12px;font-size:20px;font-weight:800}
.pick-title{font-size:18px;font-weight:800;margin:24px 0 12px}
.picks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.picks label{position:relative;cursor:pointer}
.picks input{position:absolute;opacity:0;inset:0}
.picks span{display:grid;place-items:center;height:56px;background:var(--card);border-radius:16px;font-size:18px;font-weight:700;color:var(--t2);border:2px solid transparent;transition:.15s}
.picks input:checked + span{background:var(--g);color:#fff}
.picks input:focus-visible + span{border-color:#9AD3B5}
.feedback{margin-top:12px;background:var(--card);border-radius:16px;padding:14px 16px;font-size:16px;line-height:1.6;color:var(--t1);display:none}
.feedback.show{display:block}

/* 인용 */
.quote{margin:0;background:var(--card);border-radius:var(--r);padding:22px 18px;position:relative}
.quote::before{content:"“";display:block;font-size:44px;line-height:.6;color:var(--g);font-weight:800;margin-bottom:8px}
.quote p{margin:0;font-size:19px;line-height:1.7;font-weight:700;color:var(--t1)}

/* 클럽 소개 */
.hero-btn{margin:0 0 30px}
.photo{border-radius:var(--r);overflow:hidden;background:var(--card);margin-bottom:8px}
.photo img{display:block;width:100%;height:auto}
.photo p{font-size:13px;color:var(--t3);margin:0;padding:11px 14px}
.sec-title{font-size:19px;font-weight:800;line-height:1.45;margin:30px 0 12px;color:var(--t1)}
.txt{margin:0;font-size:16.5px;line-height:1.65;color:var(--t2)}
.txt.small{font-size:15px;margin-bottom:18px}
.programs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.prog{background:var(--card);border-radius:20px;padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:4px}
.prog b{font-size:17px;margin-top:8px}
.prog span:last-child{font-size:14px;color:var(--t2)}
.check{flex-direction:row;justify-content:center;gap:10px;font-size:16.5px;font-weight:600;padding:16px 0}
.check::before{content:"✓";width:24px;height:24px;border-radius:50%;background:var(--g-soft);color:var(--g);display:grid;place-items:center;font-size:13px;font-weight:900;flex-shrink:0}

/* 폼 */
.form-box h4{font-size:21px;font-weight:800;margin:0 0 8px}
.field{display:block;font-size:15px;font-weight:700;color:var(--t2);margin:0 0 7px}
.input{width:100%;height:56px;padding:0 16px;border:2px solid transparent;border-radius:14px;background:var(--bg);color:var(--t1);font:inherit;font-size:17px;text-align:center;margin-bottom:14px;transition:border-color .15s}
.input:focus{outline:0;border-color:var(--g);background:#fff}
.agree{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.6;color:var(--t2);margin:4px 0 18px;text-align:left}
.agree input{width:22px;height:22px;flex-shrink:0;margin-top:1px;accent-color:var(--g)}
.form-msg{font-size:14.5px;line-height:1.5;margin:12px 0 0;color:var(--g);font-weight:700}
.form-msg:empty{display:none}

/* ---------- 하단 CTA ---------- */
.cta{flex-shrink:0;padding:10px 20px calc(16px + env(safe-area-inset-bottom))}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:58px;border:0;border-radius:16px;background:var(--g);color:#fff;font:inherit;font-size:18px;font-weight:700;text-decoration:none;cursor:pointer;transition:transform .1s,background .15s}
.btn:active{transform:scale(.98);background:var(--g-d)}
.btn.soft{background:var(--g-soft);color:var(--g)}
.btn.soft:active{background:#D3EDDD}
.btn.pill{display:inline-flex;width:auto;height:52px;padding:0 26px;border-radius:14px;font-size:17px}
.btn:focus-visible,.back:focus-visible{outline:3px solid #9AD3B5;outline-offset:2px}

/* ---------- 작은 화면 ---------- */
@media (max-height:700px){
  h2{font-size:23px} h2.xl{font-size:25px}
  .sub{font-size:16px;margin-bottom:16px}
  .banner{height:120px;margin-bottom:18px}
  .banner .fig{font-size:58px}
  .banner.sm{height:96px}
  .banner.sm .fig{font-size:46px}
  .word{font-size:23px}
  .row{padding:14px 0}
}
@media (max-width:360px){
  .body{padding-left:16px;padding-right:16px}
  .cta{padding-left:16px;padding-right:16px}
  h2{font-size:23px}
}
@media (prefers-reduced-motion:reduce){.swc-track{scroll-behavior:auto}}
