/* 하루노트 공개 페이지 (첫 화면·로그인·약관) — 나눔스퀘어 네오 · 모노 */
@import url(fonts.css);
:root { --accent: #2948ff; --accent-dark: #1b33d6; --ink: #111; --muted: #7d7d7d; --line: #e6e6e6; --bg: #f2f2f2; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.65 'NanumSquareNeo', 'Pretendard', 'Malgun Gothic', system-ui, sans-serif; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
.site-top { height: 64px; background: var(--ink); color: #fff; display: flex; align-items: center; padding: 0 28px; }
.brand .mark { font-weight: 900; font-size: 20px; letter-spacing: -.04em; }
.site-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.site-foot { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 26px; font-size: 13px; color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; margin: 0 0 10px; }
h1 { font-size: 40px; font-weight: 900; letter-spacing: -.045em; line-height: 1.2; margin: 0 0 14px; word-break: keep-all; }
.lead { font-size: 17px; color: #555; margin: 0 0 30px; word-break: keep-all; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 30px; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn.dark { background: var(--ink); } .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 54px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.gbtn { display: inline-flex; align-items: center; gap: 14px; height: 60px; padding: 0 28px 0 22px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 800; font-size: 17px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gbtn:hover { border-color: #b9bcc2; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.gbtn svg { width: 22px; height: 22px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat { background: #fff; padding: 24px 22px; min-height: 140px; }
.feat b { display: block; font-size: 18px; font-weight: 900; margin: 10px 0 4px; letter-spacing: -.03em; }
.feat span { font-size: 14px; color: var(--muted); }
.feat i { font-style: normal; font-size: 26px; }
.feat.accent { background: var(--accent); color: #fff; } .feat.accent span { color: rgba(255,255,255,.85); }
.feat.dark { background: var(--ink); color: #fff; } .feat.dark span { color: #bbb; }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 안내 한 장 */
.msg { max-width: 640px; margin: 40px auto; background: #fff; padding: 48px 44px; border-top: 4px solid var(--accent); }
.msg h1 { font-size: 32px; }

/* 로그인 후 (웹 화면 준비 전) */
.me-card { display: flex; align-items: center; gap: 18px; background: #fff; padding: 26px; margin: 0 0 18px; }
.me-card img { width: 56px; height: 56px; border-radius: 50%; }
.me-card b { font-size: 20px; font-weight: 900; display: block; }

/* 약관 */
.doc { max-width: 820px; margin: 0 auto; background: #fff; padding: 52px 56px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 19px; font-weight: 900; margin: 34px 0 10px; letter-spacing: -.03em; }
.doc p, .doc li { font-size: 15px; color: #333; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: #f7f7f7; font-weight: 800; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 38px; } h1 { font-size: 30px; }
  .site-main { padding: 34px 18px; } .doc, .msg { padding: 32px 24px; }
}

/* 첫 화면 버튼 줄 · 기능 타일(누르면 둘러보기) */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.btn small { font-size: 13px; font-weight: 700; opacity: .75; margin-left: 4px; }
.feats { grid-template-columns: 1fr 1fr; }
button.feat { font: inherit; text-align: left; border: 0; cursor: pointer; color: inherit; transition: transform .15s, box-shadow .15s; }
button.feat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.feat.accent, .feat.dark { color: #fff; }

/* 하루노트 둘러보기 모달 */
.tour-back { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,20,.55); display: flex; align-items: center; justify-content: center; padding: 24px; animation: tourIn .18s ease-out; }
@keyframes tourIn { from { opacity: 0; } }
.tour { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); background: #fff; border-top: 4px solid var(--accent); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.tour-x { position: absolute; right: 10px; top: 8px; z-index: 2; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.9); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.tour-body { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 0; flex: 1; overflow: auto; }
.tour-media { background: #eceef3; display: flex; align-items: center; justify-content: center; min-height: 360px; overflow: hidden; }
.tour-media img { display: block; width: 100%; height: 100%; max-height: 62vh; object-fit: contain; }
.tour-cloud { display: flex; align-items: center; gap: 18px; font-size: 64px; }
.tour-cloud b { font-size: 34px; color: var(--accent); }
.tour-text { padding: 46px 38px 30px; display: flex; flex-direction: column; }
.tour-text h2 { font-size: 30px; font-weight: 900; letter-spacing: -.04em; line-height: 1.25; margin: 0 0 14px; word-break: keep-all; }
.tour-text p:not(.eyebrow) { font-size: 16px; color: #444; line-height: 1.75; margin: 0; word-break: keep-all; }
.tour-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.tour-nav .btn { height: 46px; font-size: 15px; padding: 0 22px; }
.tour-nav .btn:disabled { opacity: .35; cursor: default; }
.tour-dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.tour-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #cfd2da; cursor: pointer; }
.tour-dots button.on { background: var(--accent); width: 24px; border-radius: 5px; }
@media (max-width: 860px) {
  .tour-back { padding: 0; } .tour { max-height: 100vh; height: 100%; }
  .tour-body { grid-template-columns: 1fr; } .tour-media { min-height: 0; } .tour-media img { max-height: 46vh; }
  .tour-text { padding: 22px 20px; } .tour-text h2 { font-size: 24px; }
  .feats { grid-template-columns: 1fr 1fr; }
}
