/* Hearlog 소개 페이지 배치. 색·글꼴·컴포넌트는 tokens.css·umicorp.css 를 그대로 쓴다 */
/* 글꼴은 직접 호스팅한다(방문자 IP를 글꼴 서버로 보내지 않음). 한국어는 KS X 1001 음절 2,350자 + 페이지 글자, 굵기 400~700 */
@font-face { font-family: "Noto Sans KR"; src: url("fonts/noto-sans-kr.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.6; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ───────── 내비게이션 ───────── */
.site-nav { position: sticky; top: 0; z-index: var(--z-nav); }
.site-nav .nav { transition: background .25s, border-color .25s; }
.site-nav:not(.scrolled) .nav { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.site-brand svg { width: 24px; height: 24px; stroke: var(--aurora-1); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.theme-btn { width: 36px; height: 36px; border: 1px solid var(--glass-border); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

/* 모노 글꼴 라벨의 넓은 자간은 영문용이라 한국어에서는 줄인다 */
:lang(ko) :is(.nav-links a, .nav-cta, .badge, .sec-num, .foot-links) { letter-spacing: .03em; }

/* ───────── 히어로 ───────── */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 72px) 0 96px; background: var(--gradient-aurora), var(--bg); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(34px, 3.4vw, 48px); text-wrap: balance; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.hero h1 .grad { background: var(--gradient-hero-life); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 0; max-width: 540px; font-size: 18px; line-height: 1.75; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--radius-full); background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 13px; color: var(--text-soft); }
.hero-points svg { width: 14px; height: 14px; stroke: var(--aurora-1); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* 휴대폰 모형: 390×844 화면을 --s 배율로 줄여 담는다 */
.device { --s: .78; position: relative; flex: none; width: calc(390px * var(--s) + 20px); height: calc(844px * var(--s) + 20px); padding: 10px; border-radius: calc(54px * var(--s) + 10px); background: linear-gradient(160deg, #2a323d, #0b0f15 40%, #1a2028); box-shadow: 0 40px 80px rgba(1, 4, 10, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
[data-theme="light"] .device { background: linear-gradient(160deg, #e9eeec, #c9d2ce 40%, #f4f7f6); box-shadow: 0 40px 80px rgba(16, 60, 48, .22), 0 0 0 1px rgba(255, 255, 255, .7) inset; }
.device-screen { position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s)); overflow: hidden; border-radius: calc(54px * var(--s)); }
.device-screen > .phone { position: absolute; top: 0; left: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; user-select: none; }
.device::before { content: ""; position: absolute; z-index: 3; top: calc(10px + 12px * var(--s)); left: 50%; width: calc(14px * var(--s) + 4px); height: calc(14px * var(--s) + 4px); border-radius: 50%; transform: translateX(-50%); background: #05070d; }
.status-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 28px; flex: none; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-primary); }
.status-bar span:last-child { display: inline-flex; gap: 6px; align-items: center; }
.status-bar i { display: inline-block; width: 16px; height: 9px; border-radius: 2px; border: 1.5px solid currentColor; opacity: .8; }

.hero-stage { position: relative; display: flex; justify-content: center; min-height: 700px; }
.hero-stage .device.back { position: absolute; top: 56px; left: 50%; transform: translateX(-98%) rotate(-6deg); --s: .66; opacity: .92; }
.hero-stage .device.front { position: relative; transform: translateX(22%) rotate(2deg); }
.float-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-lg); font-size: 13px; }
.float-chip b { display: block; font-size: 14px; }
.float-chip small { display: block; color: var(--text-dim); font-size: 12px; }
.float-chip .svc-ico { width: 36px; height: 36px; margin: 0; flex: none; }
.float-chip .svc-ico svg { width: 18px; height: 18px; }
.float-chip.c1 { top: 300px; right: -28px; animation: bob 6s ease-in-out infinite; }
.float-chip.c2 { bottom: 70px; left: -12px; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ───────── 섹션 공통 ───────── */
.section { position: relative; padding: 112px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section.tint { background: radial-gradient(60% 80% at 85% 0%, rgba(16, 185, 129, .08), transparent 70%), radial-gradient(50% 70% at 5% 100%, rgba(6, 182, 212, .07), transparent 70%), var(--bg); }
.sec-title { text-wrap: balance; }
.split .sec-title, .split .sec-desc { margin-top: 16px; }
.sec-body { margin-top: 56px; }

/* 처리 흐름 */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 0; padding: 0; list-style: none; }
.flow .glass { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.flow .step-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--aurora-1); }
.flow h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.flow p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.flow .anim { height: 48px; display: flex; align-items: center; color: var(--aurora-1); }

/* 두 칸: 글 + 화면 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { display: flex; justify-content: center; gap: 24px; }
.split-media .device { --s: .7; }
.split-media.pair .device + .device { margin-top: 64px; }
.feat-list { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.feat-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.feat-list .svc-ico { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
.feat-list .svc-ico svg { width: 21px; height: 21px; }
.feat-list b { font-size: 17px; letter-spacing: -.01em; }
.feat-list span { font-size: 15px; line-height: 1.7; color: var(--text-dim); }

/* 직접 연결 도식 */
.direct { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0; padding: 40px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.node .svc-ico { width: 72px; height: 72px; border-radius: 22px; margin: 0; }
.node .svc-ico svg { width: 32px; height: 32px; }
.node b { font-size: 16px; }
.node small { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.wire { position: relative; width: 220px; height: 64px; display: flex; align-items: center; justify-content: center; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--aurora-1) 0 8px, transparent 8px 14px); opacity: .6; }
.wire span { position: relative; white-space: nowrap; padding: 4px 12px; border-radius: var(--radius-full); background: var(--bg); border: 1px solid var(--icon-border); font-family: var(--font-mono); font-size: 11px; color: var(--mint); }
.wire i { position: absolute; top: calc(50% - 4px); left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--aurora-1); box-shadow: 0 0 12px var(--aurora-1); animation: travel 2.6s linear infinite; }
@keyframes travel { from { transform: none; } to { transform: translateX(212px); } }
.no-server { margin-top: 20px; display: flex; justify-content: center; }
.no-server span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--danger); }
.trust-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-grid .svc { padding: 28px; }

/* 요금 비교 */
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.foot-note { margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-faint); }

/* 저장 위치 */
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dest { padding: 24px; display: flex; align-items: center; gap: 16px; }
.dest .svc-ico { margin: 0; flex: none; }
.dest b { display: block; font-size: 16px; }
.dest small { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.md-sample { margin-top: 16px; padding: 24px 28px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--text-dim); overflow-x: auto; white-space: pre; }
.md-sample .k { color: var(--teal-300); }
.md-sample .h { color: var(--mint); font-weight: 700; }

/* 질문 */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 26px 24px; font-size: 15px; line-height: 1.75; color: var(--text-dim); }

/* 하단: 바깥 여백으로 본문 폭(1120px)에 맞춘다 */
.cta-wrap { padding: 32px 0 112px; }
.foot { padding-inline: max(40px, calc((100% - 1120px) / 2)); }
.foot .site-brand { font-size: 18px; }
.foot .site-brand svg { width: 20px; height: 20px; }

/* 등장 */
/* 전환은 나타날 때만 건다. 숨길 때(no-js 를 지울 때) 페이드아웃이 보이지 않게 한다 */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.no-js .reveal { opacity: 1; transform: none; }

/* 개인정보 처리방침 */
.legal { padding: 64px 0 112px; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin: 12px 0 8px; font-size: 40px; line-height: 1.2; letter-spacing: -.02em; }
.legal .eff { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.legal section { margin-top: 40px; }
.legal h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.01em; }
.legal p, .legal li { margin: 0 0 12px; font-size: 16px; line-height: 1.8; color: var(--text-soft); }
.legal ul { padding-left: 20px; }
.legal .contact { margin-top: 48px; padding: 24px 28px; }
.legal .contact p { margin: 0; }
.legal .back { padding-left: 0; }

/* ───────── 좁은 화면 ───────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split.rev .split-media { order: 0; }
  .dest-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .hero-lead { font-size: 16px; }
  .hero-stage .device.front { --s: .62; transform: translateX(14%) rotate(2deg); }
  .hero-stage .device.back { --s: .52; top: 36px; transform: translateX(-96%) rotate(-6deg); }
  .float-chip.c1 { right: 0; top: 24px; }
  .float-chip.c2 { left: 0; bottom: 24px; }
  .section { padding: 72px 0; }
  .sec-body { margin-top: 36px; }
  .flow, .dest-grid, .trust-grid, .stats { grid-template-columns: 1fr; }
  .split-media .device { --s: .5; }
  .split-media.pair .device { --s: .36; }
  .split-media.pair .device + .device { margin-top: 40px; }
  .split-media { gap: 12px; }
  .direct { grid-template-columns: 1fr; gap: 8px; padding: 28px 20px; }
  .wire { width: 100%; height: 120px; }
  .wire::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--aurora-1) 0 8px, transparent 8px 14px); }
  .wire i { left: calc(50% - 4px); top: 0; animation-name: travel-v; }
  .foot { padding-inline: 16px; }
  .legal h1 { font-size: 30px; }
}
@keyframes travel-v { from { transform: none; } to { transform: translateY(112px); } }
@media (max-width: 380px) {
  .hero-stage .device.front { --s: .56; }
  .hero-stage .device.back { --s: .46; }
  .split-media .device { --s: .44; }
  .split-media.pair .device { --s: .33; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .wire i { animation: none; }
}
/* 화면 밖 섹션의 장식 애니메이션은 멈춘다 (site.js 가 .off 를 붙인다) */
.off, .off * { animation-play-state: paused !important; }
