/* 사이 연애 조작단 — 모바일 여백·비율 보정 + 모션. style.css 뒤에 로드 */

/* 마무리 문구: 인트로 h2와 같은 구조 (검정 + 주황 em) */
.team-statement{font-size:32px;line-height:1.3;font-weight:900;letter-spacing:-1.25px;word-break:keep-all;margin-top:64px;text-align:left}
.team-statement em{font-style:normal;color:var(--orange)}
@media(min-width:620px){.team-statement{font-size:46px;margin-top:80px}}
@media(min-width:1000px){.team-statement{font-size:48px}}

/* ---------- 모바일 (≤619px): 여백·비율 ---------- */
@media (max-width: 619px) {
  /* 히어로: 화면 높이에 맞추고, 버튼이 얼굴을 덮지 않게 하단 스크림 */
  .hero {
    height: clamp(560px, 100svh - 0px, 760px);
    padding: calc(20px + env(safe-area-inset-top)) 24px 0;
  }
  .hero-heading > p { font-size: 15px; line-height: 22px; }
  .hero h1, .title-logo { width: min(272px, 72vw); height: auto; aspect-ratio: 3 / 2; }
  .hero-bg { height: 66%; top: 34%; }
  .hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 44%;
    background: linear-gradient(to top, #0e0f10 10%, #0e0f10d9 42%, #0e0f1000 100%);
    z-index: -1; pointer-events: none;
  }
  .hero-actions {
    bottom: calc(24px + env(safe-area-inset-bottom));
    gap: 10px; max-width: 342px;
  }
  .button { min-height: 56px; }

  .brand-ribbon { font-size: 13px; padding: 14px 16px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }

  /* 섹션 리듬: 8pt 배수 */
  .section { padding: 56px 24px; }
  .intro { margin-bottom: 32px; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
  .intro h2 { font-size: 32px; margin-top: 16px; }
  .badge { font-size: 11px; padding: 6px 12px; line-height: 16px; }
  .step-content h3 { font-size: 26px; line-height: 1.4; margin-top: 16px; }
  .lead { font-size: 16px; line-height: 1.65; margin-top: 12px; }
  .description, .section-footnote { font-size: 14px; line-height: 1.7; margin-top: 16px; }

  /* 카톡 목업 */
  .chat-window { margin-top: 32px; gap: 14px; padding: 4px 16px 24px; border-radius: 16px; }
  .chat-header b { font-size: 15px; }
  .chat-date { font-size: 11px; }
  .bubble { font-size: 14px; max-width: min(240px, 68vw); padding: 11px 13px; border-radius: 12px; }
  .sender { font-size: 11px; }
  .message time { font-size: 10px; }
  .avatar { flex-basis: 34px; font-size: 12px; padding: 8px 0; border-radius: 13px; }
  .annotation > span:last-child { font-size: 16px; }
  .stamp { top: -48px; right: 4px; width: 88px; height: 88px; font-size: 15px; }

  /* 분석 카드 */
  .analysis-examples h4 { font-size: 20px; margin: 40px 0 16px; }
  .note-stack { gap: 16px; padding-left: 14px; }
  .note-card { padding: 24px; border-radius: 24px; }
  .note-card h5 { font-size: 13px; margin-bottom: 12px; }
  .clue-list { font-size: 14px; gap: 12px; }
  .ratio-labels { font-size: 13px; }
  .ratio-bar { height: 24px; border-radius: 8px; }
  .ratio-caption { font-size: 12px; }

  .scan-card { padding: 28px 24px; border-radius: 24px; margin-top: 32px; }
  .scan-card h5 { font-size: 12px; margin-bottom: 16px; }
  .scan-card dl { gap: 20px; }
  .scan-card dt { font-size: 16px; }
  .scan-card dd { font-size: 13px; margin-top: 4px; }

  .compatibility-card { padding: 32px 24px; border-radius: 24px; margin-top: 32px; }
  .compatibility-card h4 { font-size: 24px; }
  .compatibility-card strong { font-size: 14px; margin: 12px 0; }
  .compatibility-card p { font-size: 13px; }
  .harmony-description { margin-top: 24px; }

  .closing { padding: 64px 24px 40px; }
  .closing h2 { font-size: 30px; margin: 16px 0 32px; line-height: 1.35; }
  .footer-logo { font-size: 96px; margin-top: 40px; letter-spacing: -4px; }
  footer { padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
  footer strong { font-size: 14px; }
  footer p { font-size: 12px; margin-top: 8px; }
  .business-info { font-size: 11px; margin-top: 20px; }

  /* 다이얼로그: 모바일 바텀시트 */
  dialog {
    width: 100%; max-width: none; margin: auto 0 0; border-radius: 28px 28px 0 0;
    border-width: 1px 0 0; max-height: 92dvh;
  }
  .dialog-inner { padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
  .dialog-description { font-size: 14px; }
  .relation-options span { padding: 14px 4px; font-size: 14px; border-radius: 14px; }
  .mbti-fields label { font-size: 13px; }
  .mbti-fields input, textarea { font-size: 16px; padding: 14px; border-radius: 14px; } /* iOS 확대 방지 */
  .fineprint, .demo-note { font-size: 12px; }
  #missionBody { font-size: 14px; }
  .close { right: 8px; top: 8px; }
}

@media (max-width: 359px) {
  .hero { height: clamp(540px, 100svh, 640px); }
  .section { padding: 48px 20px; }
  .bubble { font-size: 13px; }
}

/* ---------- 모션 ---------- */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: no-preference) {
  /* 히어로 입장 */
  .hero-heading > p, .hero h1, .hero-actions > * {
    opacity: 0; transform: translateY(18px);
    animation: rise .8s var(--ease) forwards;
  }
  .hero-heading > p { animation-delay: .3s; }
  .hero h1 { animation-name: pop; animation-delay: .1s; }
  .hero-actions > :nth-child(1) { animation-delay: .5s; }
  .hero-actions > :nth-child(2) { animation-delay: .62s; }
  .hero-bg { animation: team-in 1.1s var(--ease) both, float 7s ease-in-out 1.2s infinite; }

  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes pop { 0% { opacity: 0; transform: translateY(12px) scale(.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
  @keyframes team-in { from { opacity: 0; transform: translateY(40px) scale(1.04); } to { opacity: 1; transform: none; } }
  @keyframes float { 50% { transform: translateY(-6px); } }

  /* 버튼 */
  .button, .login-button { transition: transform .18s var(--ease), filter .18s, background .18s; }
  .button:active, .login-button:active { transform: scale(.97); }
  .hero-cta { animation: rise .8s var(--ease) .5s forwards, nudge 3.6s ease-in-out 2s infinite; }
  @keyframes nudge { 0%, 88%, 100% { box-shadow: 0 0 0 0 #fa5d0000; } 94% { box-shadow: 0 0 0 10px #fa5d0026; } }

  /* 리본 */
  .brand-ribbon span { display: inline-block; animation: slide 1.8s ease-in-out infinite; }
  @keyframes slide { 50% { transform: translateX(4px); } }

  /* 스크롤 리빌 (JS가 .motion 클래스를 붙였을 때만 숨김 → JS 실패해도 콘텐츠 보임) */
  .motion [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .motion [data-reveal].in { opacity: 1; transform: none; }

  /* 카톡 말풍선: 하나씩 등장 */
  .motion .chat-window .message, .motion .chat-window .annotation, .motion .chat-window .chat-date {
    opacity: 0; transform: translateY(10px) scale(.96); transform-origin: left bottom;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .motion .chat-window .message.sent { transform-origin: right bottom; }
  .motion .chat-window.in .chat-date { opacity: 1; transform: none; transition-delay: .1s; }
  .motion .chat-window.in .message:nth-child(3) { transition-delay: .5s; }
  .motion .chat-window.in .message:nth-child(4) { transition-delay: 1.2s; }
  .motion .chat-window.in .message:nth-child(5) { transition-delay: 1.9s; }
  .motion .chat-window.in .message, .motion .chat-window.in .annotation { opacity: 1; transform: none; }
  .motion .chat-window.in .annotation { transition-delay: 2.7s; }

  /* 주석 밑줄 그리기 */
  .annotation { position: relative; border-bottom: 0; }
  .annotation::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
    transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease) 3s;
  }
  .motion .chat-window.in .annotation::after { transform: scaleX(1); }
  .motion .chat-window:not(.in) .annotation::after { transform: scaleX(0); }
  html:not(.motion) .annotation::after { transform: scaleX(1); }

  /* 스탬프 쾅 */
  .motion .stamp { opacity: 0; transform: rotate(12deg) scale(1.8); transition: opacity .2s, transform .45s cubic-bezier(.3, 1.6, .5, 1) 3.2s; }
  .motion .chat-window.in .stamp { opacity: 1; transform: rotate(12deg) scale(1); transition-delay: 3.2s; }

  /* 스파크 */
  .spark { animation: spin 6s linear infinite; }
  @keyframes spin { from { transform: rotate(10deg); } to { transform: rotate(370deg); } }

  /* 메시지 비율 바 채우기 */
  .motion .ratio-bar .mine, .motion .ratio-bar .theirs { transition: width 1.1s var(--ease) .3s; }
  .motion .note-card:not(.in) .ratio-bar .mine { width: 0; }
  .motion .note-card:not(.in) .ratio-bar .theirs { width: 0; }

  /* 목록 순차 */
  .motion .clue-list li, .motion .scan-card dl > div {
    opacity: 0; transform: translateX(-10px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .motion .in .clue-list li, .motion .scan-card.in dl > div { opacity: 1; transform: none; }
  .motion .in li:nth-child(1), .motion .scan-card.in dl > div:nth-child(1) { transition-delay: .2s; }
  .motion .in li:nth-child(2), .motion .scan-card.in dl > div:nth-child(2) { transition-delay: .35s; }
  .motion .in li:nth-child(3), .motion .scan-card.in dl > div:nth-child(3) { transition-delay: .5s; }

  /* 푸터 로고 */
  .motion .footer-logo { opacity: 0; transform: translateY(30px) scale(.94); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .motion .footer-logo.in { opacity: 1; transform: none; }

  /* 다이얼로그 */
  dialog[open] { animation: sheet .45s var(--ease); }
  dialog[open]::backdrop { animation: fade .3s ease-out; }
  @keyframes sheet { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } }
  #missionResult:not([hidden]) > * { animation: rise .5s var(--ease) backwards; }
  #missionResult:not([hidden]) > :nth-child(2) { animation-delay: .08s; }
  #missionResult:not([hidden]) > :nth-child(3) { animation-delay: .16s; }
  #missionResult:not([hidden]) > :nth-child(n+4) { animation-delay: .24s; }
}

/* 소개 3번째 줄 / 사업자 정보 */
.intro-sub{color:var(--ink)}
.business-info{font-size:10px;line-height:1.7;color:rgba(0,0,0,.28)}
@media(min-width:1000px){.business-info{font-size:10px}}

/* 분석 카드 (시안 A): 전체 폭, 번호+구분선, 큰 숫자는 한 번만 */
.note-stack{border-left:0;padding-left:0;gap:16px}
.note-card{background:#fff;border-radius:24px;padding:8px 24px;box-shadow:0 5px 25px #262a3e0f}
.note-card h5{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--orange);padding:16px 0 4px;margin:0;letter-spacing:.02em}
.note-card h5:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}
.clue-list{gap:0}
.clue-list li{display:flex;gap:16px;align-items:baseline;padding:16px 0;border-top:1px solid #1a1a1d14;font-size:17px;font-weight:500;line-height:1.45;letter-spacing:-.03em}
.clue-list li:first-child{border-top:0}
.clue-list li:before{content:none}
.clue-list li span{flex:0 0 22px;font-size:13px;font-weight:700;color:var(--orange);font-variant-numeric:tabular-nums}
.ratio-main{display:flex;align-items:baseline;gap:6px;padding:16px 0 12px}
.ratio-main b{font-size:64px;line-height:1;font-weight:900;letter-spacing:-3px}
.ratio-main small{font-size:22px;font-weight:700}
.ratio-main em{margin-left:auto;font-style:normal;font-size:14px;font-weight:700;color:var(--orange)}
.ratio-bar{height:16px;border-radius:100px}
.ratio-caption{font-size:15px;font-weight:500;color:var(--ink);padding:14px 0 16px;margin:0;text-align:left}

/* 나 68% + 게이지 */
.ratio-main .who{font-size:20px;font-weight:700;margin-right:4px;align-self:baseline}
.ratio-bar{background:#1a1a1d12}
.motion .ratio-bar span{transition:none!important}

/* 모바일 히어로: 검정 그라데이션 위 로그인 버튼 */
@media (max-width: 619px) {
  .login-button { background: #ffffff2e; border: 1px solid #ffffff40; backdrop-filter: blur(8px); }
  .login-button:hover { background: #ffffff40; }
}

/* 카톡 주석: Figma 시안의 강원교육현옥샘체 (눈누, 상업용 무료) */
@font-face{font-family:'GangwonEduHyeonok';font-weight:500;font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEduHyeonokT_OTFMediumA.woff') format('woff')}
.annotation>span:last-child{font-family:'GangwonEduHyeonok','Noto Sans KR',sans-serif;font-weight:500;font-size:23px;letter-spacing:-.04em;color:#1d1e1c;-webkit-text-stroke:.4px currentColor;white-space:nowrap}
@media(min-width:620px){.annotation>span:last-child{font-size:26px}}
@media(max-width:359px){.annotation>span:last-child{font-size:19px}}

/* 슬림 푸터 */
footer.slim{padding-top:20px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
footer.slim .f-line{font-size:12px;line-height:1.5;margin:0;color:#625c58}
footer.slim .f-line strong{font-size:12px;margin-right:8px;color:var(--ink)}
footer.slim .business-info{margin:6px 0 0;font-size:10px;line-height:1.6}
footer.slim .business-info a,footer.slim .f-links a{color:inherit;text-underline-offset:2px}
footer.slim .f-links{margin:6px 0 0;font-size:10px;line-height:1.6;color:rgba(0,0,0,.4)}

/* ---------- 첫 장면: Figma 시안 — 로고(위) → 문구(아래) → 배경(독립 레이어) ---------- */
/* 배경 교체: dist/assets/hero-bg.webp 파일만 바꾸면 돼요. 위치·크기는 아래 .hero-bg 한 곳에서 조정. */
@media (max-width: 619px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top)) 24px 0; }
  .hero-heading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 calc(min(100vw, 619px) * .8725 - 24px); }
  .hero h1, .title-logo { width: min(228px, 60vw); height: auto; aspect-ratio: 3 / 2; margin: 0; }
  .hero-heading > p.tagline { margin: 0; width: 100%; max-width: 342px; text-align: center; font-size: 15px; line-height: 25px; letter-spacing: -1px; font-weight: 400; color: #666; }
  .hero-bg { left: -15.38%; top: auto; bottom: 0; width: 130.87%; height: auto; aspect-ratio: 3 / 2; object-fit: fill; }
  .hero::after { height: calc(min(100vw, 619px) * .62); }
}

/* ---------- 인트로: 한 화면 + 다음 ---------- */
.next-cue { display: none; }
@media (max-width: 999px) {
  .clues { padding-top: 0; }
  .clues .intro { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; margin: 0; padding-bottom: 96px; }
  .next-cue { background: none; position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; min-height: 64px; color: var(--ink); }
  .next-cue span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #1a1a1d33; font-size: 20px; font-weight: 700; background: #fff; }
  .next-cue small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
}
@media (prefers-reduced-motion: no-preference) {
  .next-cue span { animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(5px); } }
}
@media (max-width: 999px) { .clues .step-content { scroll-margin-top: 56px; } } /* "다음" 이동 시 위 여백 (등장 모션의 24px 오프셋 포함) */

/* 메시지 비율: 나 / 상대 같은 크기 */
.ratio-main{justify-content:space-between;align-items:baseline;gap:12px}
.ratio-main .side{display:flex;align-items:baseline;gap:4px}
.ratio-main .side b{font-size:40px;line-height:1;font-weight:900;letter-spacing:-2px}
.ratio-main .side small{font-size:16px;font-weight:700}
.ratio-main .side.you{color:var(--orange)}
.ratio-main .side.you b{margin-left:0}

/* 인트로: 다음 섹션이 아래에 살짝 보이게(스크롤 암시) + 눈에 띄는 큐 */
@media (max-width: 999px) {
  .clues .intro { min-height: calc(100svh - 104px); padding-bottom: 88px; }
  .next-cue { bottom: 14px; }
  .next-cue small { font-size: 12px; color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .next-cue span { animation: bob 1.4s ease-in-out infinite, ring 1.4s ease-out infinite; }
  @keyframes bob { 50% { transform: translateY(8px); } }
  @keyframes ring { 0% { box-shadow: 0 0 0 0 #fa5d0040; } 70% { box-shadow: 0 0 0 12px #fa5d0000; } 100% { box-shadow: 0 0 0 0 #fa5d0000; } }
}

/* 스크롤 큐: 원/테두리 없이 ⌵ 기호만, 제목 바로 아래로 */
@media (max-width: 999px) {
  .clues .intro { padding-bottom: 0; }
  .next-cue { position: static; left: auto; bottom: auto; transform: none; align-self: center; margin-top: 44px; min-width: 56px; min-height: 0; gap: 4px; }
  .next-cue span { display: block; width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 0; line-height: 0; }
  .next-cue small { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .next-cue span { animation: bob 1.4s ease-in-out infinite; }
}

/* 히어로 하단: 로그인 버튼 아래 검정 여백 + 흰색 스크롤 큐 */
@media (max-width: 619px) {
  .hero { padding-bottom: 88px; }
  .hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: #0e0f10; z-index: 0; }
  .hero::after { bottom: 88px; }
  .hero-bg { bottom: 88px; }
  .hero-actions { bottom: calc(88px + 24px + env(safe-area-inset-bottom)); }
  .hero .next-cue { display: flex; position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); top: auto; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 4px; min-width: 56px; min-height: 0; margin: 0; padding: 4px 8px; background: none; color: #fff; }
  .hero .next-cue small { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; }
  .hero .next-cue span { display: block; width: auto; height: auto; border: 0; background: none; box-shadow: none; font-size: 0; line-height: 0; }
}
@media (min-width: 620px) { .hero .next-cue { display: none; } }
@media (max-width: 999px) { .clues .intro { scroll-margin-top: 24px; } } /* 등장 모션의 24px 오프셋 보정 */

/* 랜딩 이용권 섹션 */
.plans{background:#fff}
.plans .plans-title{font-size:32px;line-height:1.3;font-weight:900;letter-spacing:-1.25px;margin-top:16px}
.plan-grid{display:grid;gap:12px;margin-top:28px}
.plan{border-radius:24px;padding:28px 24px;background:#fff8f1;box-shadow:0 5px 25px #262a3e0f;display:grid;gap:12px}
.plan h3{font-size:18px;line-height:1.4;font-weight:700;letter-spacing:-.4px}
.plan-price{font-size:32px;line-height:1.2;font-weight:900;letter-spacing:-1px}
.plan-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:15px;line-height:1.55;color:var(--muted)}
.plan-list li:before{content:"✓ ";color:var(--orange);font-weight:700}
.plan .button{margin-top:8px}
.plan-note{margin-top:16px;font-size:13px;line-height:1.6;color:var(--muted)}
.plan-note a{color:inherit;text-underline-offset:3px}
@media(min-width:620px){.plan-grid{grid-template-columns:1fr 1fr;gap:20px}.plans .plans-title{font-size:46px}}
@media(min-width:1000px){.plans .plans-title{font-size:48px}}

/* ---------- 데스크톱/태블릿 보정 ---------- */
/* 이용권 카드: 높이를 맞추고 버튼을 아래로 정렬 */
.plan{display:flex;flex-direction:column}
.plan .button{margin-top:auto}
@media(min-width:620px){.plan-grid{align-items:stretch}}

@media (min-width: 1000px) {
  /* 상단 메뉴와 본문 컨테이너(1120) 좌우선 맞춤 */
  .nav-inner { padding: 0 40px; }
  /* 히어로: 배경은 화면 끝까지, 내용은 1120 컨테이너에 맞춤 */
  .hero { max-width: none; margin: 0; padding-inline: max(40px, calc((100% - 1120px) / 2)); }
  /* 버튼: 옛 grid-row 규칙 때문에 순서가 뒤집히고 가운데로 밀리던 문제 */
  .hero-actions { margin-inline: 0; }
  .hero-actions .hero-cta { grid-row: auto; grid-column: auto; justify-self: stretch; }
  /* 이용권 */
  .plans .section-inner { padding-bottom: 0; }
  /* 섹션 간 과한 여백 정리 */
  .harmony { padding-bottom: 60px; }
  .team-statement { margin-top: 48px; }
  .plans { padding-top: 60px; }
}

/* 웹: 히어로 버튼을 가로로 나란히 */
@media (min-width: 1000px) {
  .hero-actions { display: flex; flex-direction: row; align-items: center; gap: 12px; width: auto; max-width: none; }
  .hero-actions .hero-cta, .hero-actions .login-button { width: auto; max-width: none; flex: 0 0 auto; padding: 14px 28px; white-space: nowrap; }
  .hero-actions .login-button { justify-self: auto; }
}

/* ---------- Figma 갱신(67:366): 문구·카드·모바일 히어로 ---------- */
.lead .hl { background: linear-gradient(transparent 55%, #fee3b5 55%); }
.note-card h5 small { font-size: .86em; font-weight: 400; color: var(--ink); }

@media (max-width: 619px) {
  /* 본문은 가운데 정렬(시안), 카드 안 글은 왼쪽 */
  .step-content { text-align: center; }
  .step-content .description, .step-content .lead { text-wrap: balance; word-break: keep-all; }
  .step-content .lead { font-weight: 400; color: var(--muted); font-size: 15px; }
  .team-statement { text-align: center; font-size: 28px; margin-top: 56px; }
  .harmony { padding-bottom: 48px; }
  .harmony .section-grid > div:last-child { margin-top: 24px; }
  .compatibility-card { margin-top: 0; padding-block: 28px; }
  .annotation { margin-top: 6px; }
  .chat-window { margin-top: 56px; }

  /* 히어로: 팀 이미지를 꽉 채우고 어두운 그라데이션 위에 흰 글씨 */
  .hero { background: #fff; }
  .hero-bg { left: 0; top: -16px; bottom: 88px; width: 100%; height: calc(100% - 88px + 16px); aspect-ratio: auto; object-fit: cover; object-position: top center; animation: team-in 1.1s var(--ease) both; }
  .hero::after { inset: 0 0 88px 0; height: auto; z-index: -1; background: linear-gradient(180deg, #0000 42%, #090a0bd5 92%, #0e0f10 100%), #00000022; }
  .hero-heading { padding-bottom: 170px; }
  .hero-heading > p.tagline { color: #fff; font-size: 13px; letter-spacing: 2px; text-shadow: 0 0 38px #0006; }
  .hero-actions { gap: 8px; }
  .login-button { width: 100%; min-height: 56px; padding: 0 24px; border-radius: 100px; background: #ffffff33; color: #fff; font-size: 14px; text-decoration: none; backdrop-filter: blur(6px); }
  .login-button:hover { color: #fff; background: #ffffff47; }
}

/* ---------- 타겟 스캔: 픽셀 스탯 창 ---------- */
.scan-card.pix { padding: 0; background: #fffbea; border: 3px solid #1d1e1c; border-radius: 0; box-shadow: 5px 5px 0 #1d1e1c; font-family: 'Galmuri11', 'Noto Sans KR', sans-serif; overflow: hidden; }
.pix-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #fa5d00; color: #fff; font-size: 13px; letter-spacing: .04em; border-bottom: 3px solid #1d1e1c; }
.pix-live { font-size: 12px; }
.pix-body { padding: 20px; }
.pix-id { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 3px dashed #1d1e1c33; }
.pix-char { flex: none; image-rendering: pixelated; background: #fee3b5; border: 1px solid #1d1e1c; padding: 6px; width: 108px; height: 126px; box-sizing: border-box; }
.pix-name { font-size: 22px; line-height: 1.3; color: #1d1e1c; }
.pix-sub { font-size: 12px; line-height: 1.5; color: #fa5d00; margin-top: 4px; }
.scan-card.pix dl { gap: 16px; margin-top: 16px; display: grid; }
.scan-card.pix dt { font-size: 15px; font-weight: 400; line-height: 1.5; color: #1d1e1c; }
.scan-card.pix dd { font-size: 12px; line-height: 1.5; color: #615f5c; margin: 2px 0 8px; }
.pix-meter { display: block; height: 14px; border: 2px solid #1d1e1c; background: repeating-linear-gradient(90deg, #e8dfc4 0 calc(20% - 3px), #fffbea calc(20% - 3px) 20%); }
.pix-meter::after { content: ""; display: block; height: 100%; width: calc(var(--v) * 20%); background: repeating-linear-gradient(90deg, #fa5d00 0 calc(100% / var(--v) - 3px), transparent calc(100% / var(--v) - 3px) calc(100% / var(--v))); }
.pix-note { margin-top: 16px; font-size: 11px; color: #777571; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .pix-char { animation: pix-bob 1s steps(2) infinite; }
  .pix-live { animation: pix-blink 1.2s steps(2) infinite; }
  @keyframes pix-bob { 50% { transform: translateY(-4px); } }
  @keyframes pix-blink { 50% { opacity: .35; } }
}
@media (max-width: 619px) { .scan-card.pix { padding: 0; margin-top: 32px; border-radius: 0; } }
.pix-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pix-tags span { font-size: 12px; line-height: 1; padding: 6px 8px; border: 2px solid #1d1e1c; background: #fee3b5; color: #1d1e1c; }
.pix-tags span + span { background: #d9f0c8; }
.pix-info { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; color: #1d1e1c; }
.pix-info b { font-weight: 400; color: #fa5d00; }
.pix-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; }
.pix-chips span { font-size: 13px; line-height: 1; padding: 7px 9px; border: 0; background: #d9f0c8; color: #1d1e1c; }

/* ---------- 소개 문구 프레임(올화이트) + 타이핑 ---------- */
.statement { background: #fff; text-align: center; }
.statement .intro { margin: 0; }
.statement .intro h2 { margin-top: 16px; }
.statement .team-statement { margin: 0; text-align: center; font-weight: 900; letter-spacing: -1.4px; }
.statement .eyebrow { text-align: center; }
.motion .typing .ch { opacity: 0; }
.motion .typing.in .ch { animation: ch-in .06s linear forwards; animation-delay: calc(var(--i) * 70ms + .25s); }
@keyframes ch-in { from { opacity: 0; } to { opacity: 1; } }
.motion .typing[data-reveal] { transform: none; }
@media (max-width: 999px) {
  .statement { padding: 72px 24px; }
  .statement .intro h2 { font-size: 28px; letter-spacing: -1.4px; }
  .statement .team-statement { font-size: 28px; margin-top: 0; }
}
@media (min-width: 1000px) {
  .statement { padding: 96px 40px; }
  .statement .intro h2 { font-size: 42px; letter-spacing: -2px; }
  .statement .team-statement { font-size: 42px; letter-spacing: -2px; }
}
.motion .scan-card.in dl > div:nth-child(4) { transition-delay: .65s; }

html, body { overflow-x: clip; }
/* 궁합 예시 */
.pix-couple { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pix-char.sm { width: 72px; height: 86px; padding: 4px; background: #fee3b5; border: 1px solid #1d1e1c; box-sizing: border-box; image-rendering: pixelated; }
.pix-heart { position: relative; width: 80px; height: 72px; display: grid; place-items: center; }
.pix-heart-svg { width: 80px; height: 72px; image-rendering: pixelated; }
.pix-heart b { position: absolute; top: 34%; font-weight: 400; font-size: 16px; color: #fff; text-shadow: 2px 2px 0 #a33c00; }
.pix-names { text-align: center; font-size: 15px; margin: 12px 0 4px; color: #1d1e1c; }
.scan-card.pix.match dl { gap: 14px; margin-top: 12px; }
.scan-card.pix.match dt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.scan-card.pix.match dt em { font-style: normal; font-size: 12px; color: #fa5d00; text-align: right; }
.pix-foot { margin-top: 16px; text-align: center; font-size: 12px; color: #1d1e1c; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
.pix-foot span { padding: 6px 8px; border: 2px solid #1d1e1c; background: #d9f0c8; }
.pix-foot span + span { background: #fee3b5; }
@media (prefers-reduced-motion: no-preference) { .pix-heart { animation: pix-bob 1s steps(2) infinite; } }
/* 픽셀 창 축소 */
.scan-card.pix { width: min(100%, 340px); margin-inline: auto; zoom: .78; }

/* 타이핑 주황 커서 */
.motion .typing .ch { position: relative; }
.motion .typing .ch::after { content: ""; position: absolute; right: -2px; top: .14em; bottom: .1em; width: 3px; background: #fa5d00; opacity: 0; pointer-events: none; }
.motion .typing.in .ch::after { animation: caret-pass .07s linear; animation-delay: calc(var(--i) * 70ms + .25s); }
.motion .typing.in .ch.last::after { animation: caret-blink .9s steps(1) infinite; animation-delay: calc(var(--i) * 70ms + .25s); }
@keyframes caret-pass { from, to { opacity: 1; } }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* 단서 수집: 흰 영역에서 끊기지 않도록 위 여백 + 부드러운 시작 */
.clues { padding-top: 72px; background: linear-gradient(#fff, #fff0 160px), radial-gradient(ellipse at 10% 44%, #ffc46e70 0, #ffe0ad45 25%, #fcfcfc 70%); }
@media (min-width: 1000px) { .clues { padding-top: 104px; } }

/* 모바일 히어로: 검정 단색 바 대신 이미지가 아래로 이어지며 어두워짐 */
@media (max-width: 619px) {
  .hero::before { display: none; }
  .hero-bg { bottom: 0; height: 100%; }
  .hero::after { inset: 0; background: linear-gradient(180deg, #0000 42%, #000a 72%, #0e0f10 100%), #0002; }
  .hero-actions { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hero-heading { padding-bottom: 150px; }
}

/* 웹 히어로: 로고·문구·버튼을 한 덩어리로 묶어 이미지와 세로 중앙 정렬 */
@media (min-width: 1000px) {
  .hero { grid-template-rows: 1fr auto auto 1fr; }
  .hero-heading { grid-row: 2; align-self: end; }
  .hero-actions { grid-row: 3; align-self: start; margin-top: 28px; justify-self: center; }
  .hero-heading { text-align: center; }
  .hero-heading > p, .hero-heading > p.tagline { text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero picture { display: contents; }
  .hero-bg { grid-row: 1 / 5; }
  .hero h1, .hero .title-logo { width: 420px; height: auto; aspect-ratio: 3 / 2; }
  .hero-actions .hero-cta, .hero-actions .login-button { padding: 16px 32px; font-size: 17px; }
}

/* 웹 히어로 이미지: 누끼(투명 PNG급) 컷이라 합성 없이 그대로 */
@media (min-width: 1000px) {
  .hero-bg { mix-blend-mode: normal; }
  html[data-theme=dark] .hero-bg { filter: drop-shadow(0 0 28px #ffffff22); }
}

/* 이용권 구성 항목이 늘어난 카드: 목록과 버튼 사이 여백 확보 */
.plan-list { margin-bottom: 20px; }
/* 프리미엄 추가 구성 강조 */
li.plus{color:#fa5d00;font-weight:700}
html[data-theme=dark] li.plus{color:#ff8a3d}

/* 메인 시안 동기화: 타겟 스캔 얼굴 · 궁합 카드 · 파일철(Dossier) */
@font-face{font-family:'PF Stardust';src:url(assets/pf-stardust-bold.woff2) format('woff2');font-weight:700;font-display:swap}
.pix-face{object-fit:cover;object-position:50% 6%;padding:0!important;width:84px;height:94px;image-rendering:auto!important}
.pix-who{margin:0;display:grid;justify-items:center;gap:4px}
.pix-who figcaption{padding:2px 8px;background:#fee3b5;border:1px solid #1d1e1c;font-size:11px;line-height:1.3;position:relative}
.pix-who figcaption::after{content:"▾";position:absolute;left:50%;top:100%;transform:translateX(-50%);font-size:10px;line-height:1}
.pix-who .pix-char.sm{margin-top:6px;object-fit:cover;padding:0;image-rendering:auto}
.dossier{width:288px;margin:34px auto 0;zoom:1.04;position:relative;background:#fffaeb;border:2px solid #1c1f1c;box-shadow:4px 4px 0 #1c1f1c;font-family:'PF Stardust','Noto Sans KR',sans-serif;color:#1c1f1c;overflow:hidden}
.ds-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#1c1f1c;color:#fff;font-size:8.4px}.ds-bar b{font-weight:400;color:#fa5d00}
.ds-stamp{position:absolute;left:176px;top:120px;transform:rotate(-10deg);opacity:.88}.ds-stamp span{display:block;padding:2.5px 6.7px;border:2px solid #d12e1a;color:#d12e1a;font-size:10.9px;white-space:nowrap}
.ds-body{display:grid;gap:10px;padding:13.5px}
.ds-case{display:grid;gap:3.4px;font-size:8.4px}.ds-case p{display:flex;align-items:center;gap:6.7px;margin:0}.ds-case b{font-weight:400}
.ds-chip{display:inline-flex;align-items:center;padding:0 8.4px;height:12px;background:#fff1d6;white-space:nowrap}.ds-chip em{font-style:normal;color:#fa5d00;margin-right:3px}
.ds-case p:last-child span{font-size:9.3px}
.ds-body hr{border:0;border-top:1px dashed #1c1f1c66;margin:0;width:100%}.ds-body hr.solid{border-top-style:solid;border-top-width:1.3px}
.ds-id{display:flex;align-items:center;gap:11.8px}.ds-id img{flex:none;width:54px;height:62px;object-fit:cover;object-position:50% 20%;background:#fee3b5;border:.7px solid #1d1e1c}
.ds-id>div{display:grid;gap:4.2px;justify-items:start}.ds-id strong{font-size:16.8px;font-weight:400;line-height:1.2}.ds-id p{margin:0;font-size:9.3px;line-height:1.2}.ds-id em{font-style:normal;color:#fa5d00}
.ds-tag{padding:.8px 4.2px;background:#fa5d00;color:#fff;font:700 7.6px/1.4 'Atkinson Hyperlegible Mono',monospace}
.ds-h{display:flex;align-items:center;gap:6.7px;margin:0;font:700 10.9px/1.2 'Noto Sans KR',sans-serif}.ds-h span{padding:1.7px 5px;background:#1c1f1c;color:#fffaeb;font:400 8.4px/1.4 'PF Stardust',sans-serif}
.ds-brief{text-align:left;padding:6.7px 8.4px;background:#fff;border:1.3px solid #1c1f1c;font-size:9.3px;line-height:1.45}.ds-brief p{margin:0}
.ds-cards{display:flex;gap:6.7px;align-items:stretch}.ds-cards div{flex:1;min-width:0;display:grid;align-content:start;gap:3.4px;padding:6.7px 5.9px 8.4px;background:#fff;border:1.3px solid #1c1f1c;text-align:center;line-height:1.4}.ds-cards b{font-weight:400;font-size:9.3px}.ds-cards small{font-size:8.4px;color:#615f5c;font-weight:400}
.ds-warn{display:flex;flex-wrap:wrap;gap:5px}.ds-warn span{padding:2.5px 6.7px;background:#fcded1;font-size:9.3px;white-space:nowrap}
.ds-final{display:grid;gap:3.4px;padding:8.4px;background:#1c1f1c}.ds-final small{color:#fa5d00;font-size:8.4px}.ds-final p{margin:0;color:#fffaeb;font-size:10.9px}
.ds-foot{display:flex;justify-content:space-between;align-items:center}.ds-code{display:flex;gap:1.7px}.ds-code i{display:block;height:16.8px;background:#1c1f1c}.ds-foot small{font:700 7.6px 'Atkinson Hyperlegible Mono',monospace;color:#615f5c}

/* 카톡 예시: 준호(받은 메시지)는 좌측, 민지(보낸 메시지)는 우측 정렬 */
.message.received .message-body { align-items: flex-start; text-align: left; }
.message.received .sender, .message.received .bubble { text-align: left; }
.message.sent { justify-content: flex-end; }
.message.sent .bubble { text-align: right; }

.dossier .ds-brief, .dossier .ds-brief p { text-align: left !important; }
