/* 홍씨스터 메인 화면 (로그인 게이트 / 승인 대기 / 메인) — 낮·밤 모두 변수로 동작 */
.m-body a { text-decoration: none; }
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.m-float-right { position: fixed; top: 16px; right: 16px; z-index: 20; }

/* ---------- 로고 ---------- */
.m-logo { display: flex; align-items: center; gap: 12px; }
.m-logo-mark { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 8px 18px rgba(240, 138, 44, .35)); }
.m-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.m-logo-text b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.m-logo-text small { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; }
.m-logo-xl { flex-direction: column; gap: 14px; text-align: center; }
.m-logo-xl .m-logo-mark { width: 88px; height: 88px; }
.m-logo-xl .m-logo-text b { font-size: 34px; }
.m-logo-xl .m-logo-text { align-items: center; }

/* ---------- 비로그인: 로그인 게이트 ---------- */
.m-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 40px; }
.m-orbit { position: relative; width: min(360px, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.m-orbit-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 193, 7, .30), rgba(240, 138, 44, .12) 45%, transparent 70%); filter: blur(6px); animation: mGlow 5s ease-in-out infinite alternate; }
@keyframes mGlow { from { transform: scale(.94); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
.m-orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); animation: mSpin 60s linear infinite; }
.m-orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(min(360px, 86vw) / -2)); }
.m-orbit-item em { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: rotate(calc(360deg / var(--n) * var(--i) * -1)); animation: mSpinBack 60s linear infinite; }
@keyframes mSpin { to { transform: rotate(360deg); } }
@keyframes mSpinBack { from { rotate: 0deg; } to { rotate: -360deg; } }
.m-orbit-center { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .m-orbit-ring, .m-orbit-item em, .m-orbit-glow { animation: none; } }

.m-gate-copy { font-size: 18px; color: var(--muted); margin: 28px 0 18px; text-align: center; }
.m-gate-copy b { color: var(--label); }
.m-login { width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 24px; box-shadow: var(--shadow); }
.m-auto { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 2px 0 4px; cursor: pointer; }
.m-login-links { display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.m-login-links a:hover { color: var(--accent); }
.m-gate-note { color: var(--faint); font-size: 13px; margin-top: 18px; text-align: center; }

/* ---------- 승인 대기 ---------- */
.m-pending { min-height: calc(100vh - 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; gap: 14px; }
.m-pending-icon { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: var(--label);
  background: radial-gradient(circle, var(--warn-soft), transparent 70%); border: 1px solid var(--line); }
.m-pending-icon svg { width: 60px; height: 60px; animation: mFlip 3s ease-in-out infinite; }
@keyframes mFlip { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.m-pending h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.03em; margin: 4px 0 0; line-height: 1.35; }
.m-pending p { margin: 0 0 10px; }

/* ---------- 승인 회원: 메인 ---------- */
.m-topnav { display: flex; gap: 18px; margin-left: 28px; color: var(--muted); font-size: 14.5px; }
.m-topnav a:hover { color: var(--text); }
@media (max-width: 720px) { .m-topnav { display: none; } }

.m-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.m-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(40px, 8vw, 96px) 0 56px; }
.m-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.12; letter-spacing: -.04em; margin: 16px 0 18px; }
.m-hero h1 em { font-style: normal; color: var(--label); }
.m-hero p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
@media (max-width: 860px) { .m-hero { grid-template-columns: 1fr; } }

.m-demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 22px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.m-demo-head { display: flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.m-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.m-demo-title { margin-left: 8px; color: var(--muted); font-size: 13px; }
.m-demo-chord { font-size: 88px; font-weight: 800; letter-spacing: -.05em; line-height: 1; text-align: center; color: var(--accent); }
.m-demo-meter { height: 10px; border-radius: 10px; background: var(--bg-2); margin: 18px 0; overflow: hidden; }
.m-demo-meter i { display: block; height: 100%; width: 72%; background: var(--good); border-radius: 10px; animation: mMeter 2.6s ease-in-out infinite alternate; }
@keyframes mMeter { from { width: 48%; } to { width: 88%; } }
.m-demo-bubble { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 14px; }
.m-demo-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.m-demo-bubble b { color: var(--accent); font-size: 13px; }
.m-demo-bubble p { margin: 2px 0 0; font-size: 14.5px; }

.m-section { padding: 56px 0 24px; }
.m-section h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; margin: 0 0 8px; }
.m-cat { margin-top: 28px; }
.m-cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.m-cat-head h3 { margin: 0; font-size: 19px; color: var(--label); }
.m-cat-head span { color: var(--muted); font-size: 14px; }
.m-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.m-subject { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); opacity: .6; }
.m-subject.open { opacity: 1; border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); transition: transform .12s ease; }
.m-subject.open:hover { transform: translateY(-3px); }
.m-subject-icon { font-size: 30px; }
.m-subject b { font-size: 17px; }
.m-subject small { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.m-subject .hs-tag { align-self: flex-start; }

.m-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.m-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.m-step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.m-step h3 { margin: 12px 0 6px; }
.m-step p { color: var(--muted); margin: 0; }

.m-cta { text-align: center; padding: 64px 20px; margin: 48px 0; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(600px 240px at 50% 0%, var(--accent-soft), var(--surface)); }
.m-cta h2 { margin: 0 0 20px; font-size: clamp(22px, 3vw, 30px); }

.m-foot { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
