﻿/* =========================================================
   MSH1986 — 디자인 토큰 (색·글자·간격을 한곳에서 관리)
   ========================================================= */
:root {
  --bg: #07080a;
  --bg-2: #0d0f13;
  --panel: rgba(18, 20, 26, 0.62);
  --line: rgba(237, 232, 223, 0.12);
  --line-strong: rgba(237, 232, 223, 0.28);
  --text: #ede8df;
  --muted: #a29d94;
  --faint: #6d6a64;
  --ok: #8fd6a4;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Syncopate", "Pretendard Variable", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
.node img { height: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------------- 상단 바 (HUD) ---------------- */
/* 시계 브랜드 사이트처럼: [01] 번호 메뉴 — 가운데 로고 — [03] 문의 */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 72px; padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hud.open { background: #08090b !important; }
.hud.scrolled, .hud.open { background: rgba(7, 8, 10, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: flex; align-items: center; justify-content: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; }
.brand svg { width: 22px; height: 22px; }
.hud-left, .hud-right { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.hud-right { justify-content: flex-end; }
.hud-left a, .hud-left button, .hud-right > a {
  font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text);
  background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
}
.hud .idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint); transition: color 0.3s; }
.hud-left a:hover .idx, .hud-left button:hover .idx, .hud-right > a:hover .idx, .mega-btn[aria-expanded="true"] .idx { color: var(--text); }
.chev { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
.mega-btn[aria-expanded="true"] .chev { transform: translateY(1px) rotate(225deg); }
.hud .clock { min-width: 8.6em; text-align: right; }

/* 서비스 펼침 메뉴 (메가 메뉴) */
.mega-item .mono { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #08090b; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); border-bottom: 1px solid var(--line); animation: drop 0.4s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mega-in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; }
.mega-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.mega-head a:hover { color: var(--text); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.mega-item { display: grid; gap: 6px; align-content: start; padding: 26px 26px 26px 0; border-right: 1px solid var(--line); transition: background 0.3s; }
.mega-item + .mega-item { padding-left: 26px; }
.mega-item:last-child { border-right: 0; }
.mega-item img { width: 48px; border-radius: 12px; margin-bottom: 14px; filter: grayscale(1); opacity: 0.85; transition: filter 0.4s, opacity 0.4s; }
.mega-item:hover img { filter: none; opacity: 1; }
.mega-item strong { font-size: 22px; letter-spacing: -0.02em; }
.mega-item strong em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); margin-left: 6px; font-weight: 400; text-transform: uppercase; }
.mega-item .t { color: var(--muted); font-size: 14.5px; }
.mega-item .st { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.mega-item .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); }
.mega-item.soon strong { color: var(--muted); }

/* 휴대폰 메뉴 */
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; padding: 10px 0; cursor: pointer; }
.menu-btn i { position: relative; width: 18px; height: 1px; background: currentColor; transition: background 0.3s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.menu-btn i::before { transform: translateY(-5px); }
.menu-btn i::after { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: rotate(-45deg); }
.sheet { position: fixed; inset: 72px 0 0 0; z-index: 49; background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto; animation: drop 0.35s var(--ease); display: flex; flex-direction: column; justify-content: space-between; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; gap: 12px; }
.sheet nav a .idx { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; }
.sheet nav a.sub { font-size: 17px; font-weight: 600; padding: 14px 0 14px 4px; }
.sheet nav a.sub img { width: 28px; border-radius: 8px; }
.sheet nav a.sub span { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.sheet .mono { margin-top: 32px; text-transform: none; }

@media (max-width: 860px) {
  .hud { grid-template-columns: auto 1fr; height: 64px; }
  .hud-left, .hud .clock, .hud .nav-contact { display: none; }
  .brand { justify-content: flex-start; }
  .menu-btn { display: inline-flex; }
  .sheet { inset: 64px 0 0 0; }
  .mega { display: none; }
}

/* ---------------- 첫 화면: 시간 궤도 ---------------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.hero canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { /* 아래쪽으로 자연스럽게 어두워지는 막 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.orbit-stage { position: relative; width: min(92vw, 860px, 84svh); aspect-ratio: 1 / 1; }
.hero-foot { pointer-events: none; }
.hero-foot a { pointer-events: auto; }
.tilt { position: absolute; inset: 0; will-change: transform; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial .ring { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dial .ring.strong { stroke: var(--line-strong); }
.dial .tick { stroke: rgba(237, 232, 223, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dial .tick.major { stroke: rgba(237, 232, 223, 0.75); stroke-width: 1.5; }
.dial .hand { stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.55; }
.dial .link { stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; opacity: 0; transition: opacity 0.3s; }
.dial .link.on { opacity: 0.6; }
.spin { transform-box: view-box; transform-origin: 0 0; animation: spin 240s linear infinite; }
.spin.rev { animation-duration: 420s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.core { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
/* 후킹: 들어오자마자 시계가 거꾸로 감기고(시간을 되돌림), 문장이 한 줄씩 떠오름 */
.core h1 { margin: 0; font-size: clamp(30px, min(6.6vw, 8svh), 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.core h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.core h1 .line::after { content: none; }
.hook .line { animation: rise 1.1s var(--ease) both; animation-delay: calc(1.1s + var(--i) * 0.14s); }
@keyframes rise { from { opacity: 0; transform: translateY(0.5em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hook .mono { display: block; margin-bottom: 20px; animation: fade 1s 0.9s both; }
.hook .counter { margin: 22px 0 0; color: var(--muted); font-size: clamp(13.5px, 1.5vw, 16px); animation: fade 1s 1.6s both; }
.hook .counter b { display: inline-block; min-width: 3.2em; font-family: var(--mono); font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.hook .cta { margin-top: 26px; pointer-events: auto; min-height: 46px; animation: fade 1s 1.9s both; background: var(--text); color: var(--bg); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.rewind { transform-box: view-box; transform-origin: 0 0; animation: rewind 1.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rewind { from { transform: rotate(540deg) scale(0.86); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
.dial .ring { animation: fade 1.4s 0.2s both; }
.node { animation: fade 1s 1.3s both; }
@media (max-width: 560px) { .hook .counter { max-width: 15em; margin-left: auto; margin-right: auto; } }

/* 궤도 위를 도는 서비스 노드 */
/* 시계의 '인덱스'처럼: 평소엔 흑백 유리 원판, 가리키면 원래 색이 켜짐 */
.node {
  --n: clamp(44px, 5.2vw, 58px);
  position: absolute; left: 0; top: 0; z-index: 5;
  width: var(--n); height: var(--n); margin: calc(var(--n) / -2) 0 0 calc(var(--n) / -2);
  border-radius: 50%; will-change: transform;
}
.node .disc {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 14, 18, 0.72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.node .disc::after { /* 바깥 베젤 링 */
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--line);
  transition: inset 0.5s var(--ease), border-color 0.4s;
}
.node img { width: 56%; height: auto; border-radius: 26%; filter: grayscale(1) brightness(1.08) contrast(0.92); opacity: 0.82; transition: filter 0.5s, opacity 0.5s; }
.node:hover .disc, .node:focus-visible .disc, .node.active .disc { transform: scale(1.14); border-color: rgba(237, 232, 223, 0.7); box-shadow: 0 0 0 10px rgba(237, 232, 223, 0.035), 0 20px 60px rgba(0, 0, 0, 0.6); }
.node:hover .disc::after, .node.active .disc::after { inset: -12px; border-color: var(--line-strong); }
.node:hover img, .node:focus-visible img, .node.active img { filter: none; opacity: 1; }
.node .label {
  position: absolute; left: 50%; top: calc(100% + 16px); transform: translateX(-50%); white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color 0.3s;
}
.node .label b { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; font-weight: 400; color: var(--faint); margin-right: 7px; text-transform: uppercase; }
.node.ghost .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.node:hover .label, .node.active .label { color: var(--text); }
.node.ghost { --n: 9px; border: 1px solid var(--faint); pointer-events: none; }
.node.ghost .label { top: calc(100% + 10px); color: var(--faint); }

/* 노드에 올리면 뜨는 정보 패널 */
.probe {
  position: absolute; z-index: 6; width: 250px; padding: 16px 18px 18px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.probe.on { opacity: 1; transform: none; }
.probe h3 { margin: 4px 0 2px; font-size: 18px; }
.probe p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.probe dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 12.5px; }
.probe dt { color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.probe dd { margin: 0; }
.probe .go { display: block; margin-top: 14px; font-size: 12.5px; color: var(--text); }
@media (hover: none) { .probe { display: none; } }

.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-between; align-items: end; padding: 0 var(--gutter); gap: 16px; }
.scroll-cue { display: flex; align-items: center; gap: 10px; }
.scroll-cue i { display: block; width: 1px; height: 36px; background: linear-gradient(var(--text), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 클릭하면 화면이 그 서비스 색으로 빨려 들어가는 전환 */
.warp { position: fixed; inset: 0; z-index: 90; pointer-events: none; clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); background: var(--c, #000); transition: clip-path 0.75s var(--ease); }
.warp.go { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); }

/* ---------------- 섹션 공통 ---------------- */
section { position: relative; }
.sec { padding: clamp(96px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }

/* 철학: 스크롤하면 글자가 켜지는 선언문 */
.manifesto p { margin: 0 0 0.9em; font-size: clamp(24px, 3.6vw, 46px); font-weight: 600; line-height: 1.42; letter-spacing: -0.035em; max-width: 22em; }
.manifesto .w { color: rgba(237, 232, 223, 0.18); transition: color 0.5s; }
.manifesto .w.lit { color: var(--text); }
.manifesto .sign { margin-top: 48px; color: var(--muted); font-size: 15px; }

/* 원칙 3가지 */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles li { list-style: none; padding: 32px 28px 8px 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.principles h3 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }
.principles ol { margin: 0; padding: 0; display: contents; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles li:first-child { border-top: 0; }
}

/* 서비스 카드 */
.services { display: grid; gap: 20px; }
.svc {
  --c: #111; --a: #fff;
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 24px; overflow: hidden;
  background: var(--c); color: #fff; isolation: isolate;
}
.svc::before { /* 로고의 시계 눈금을 닮은 은은한 원 */
  content: ""; position: absolute; right: -12%; top: 50%; width: 70%; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); z-index: -1;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.02);
}
.svc .kind { color: rgba(255, 255, 255, 0.66); }
.svc h3 { margin: 14px 0 6px; font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.04em; line-height: 1.1; }
.svc h3 small { display: block; margin-top: 8px; font-family: var(--display); font-size: 12px; letter-spacing: 0.24em; color: var(--a); font-weight: 700; }
.svc .tagline { margin: 22px 0 10px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
.svc .desc { margin: 0; color: rgba(255, 255, 255, 0.76); max-width: 28em; }
.svc .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.svc .visual { justify-self: center; width: min(100%, 300px); }
.svc .visual img { border-radius: 22%; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4); }
/* 9:16 쇼츠 칸 (휴대폰 화면 비율) */
.shorts { position: relative; justify-self: center; margin: 0; width: min(100%, 280px); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #0b0d10; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 8px rgba(0, 0, 0, 0.25), 0 50px 100px rgba(0, 0, 0, 0.45); }
.shorts video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shorts figcaption { position: absolute; left: 16px; top: 14px; color: rgba(255, 255, 255, 0.7); font-size: 10.5px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.shorts .sound { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.45); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.shorts .sound svg { width: 18px; height: 18px; }
.shorts .sound .on, .shorts .sound[aria-pressed="true"] .off { display: none; }
.shorts .sound[aria-pressed="true"] .on { display: inline; }
@media (max-width: 760px) { .svc .shorts { order: 0; width: min(100%, 260px); justify-self: center; } .app-hero .shorts { order: -1; width: min(70%, 240px); justify-self: start; } }
.app-hero .shorts { width: min(100%, 300px); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-size: 12.5px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a); }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; gap: 28px; }
  .svc .visual { order: -1; justify-self: start; width: 96px; }
}
.svc.soon { background: var(--bg-2); border: 1px dashed var(--line-strong); grid-template-columns: 1fr; color: var(--muted); }
.svc.soon::before { display: none; }
.svc.soon h3 { color: var(--text); font-size: clamp(24px, 3vw, 32px); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 99px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.solid { background: #fff; color: #0b0b0b; }
.btn.line { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn.line:hover { border-color: #fff; }
.btn.off { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.55); cursor: default; }
.btn.off:hover { transform: none; }
/* 스토어 버튼: 공식 배지처럼 두 줄 (작은 안내 + 스토어 이름) */
.btn.store { min-height: 54px; padding: 0 22px 0 18px; border-radius: 14px; background: #fff; color: #0b0b0b; gap: 12px; text-align: left; }
.btn.store svg { width: 22px; height: 22px; }
.btn.store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.btn.store small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.62; margin-bottom: 2px; }
.btn.store.off { background: transparent; color: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn.store.off small { opacity: 0.8; }
.doc ul.num { list-style: none; padding: 0; }
.doc ul.num li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); margin: 0; }
.doc ul.num .k { position: absolute; left: 0; top: 12px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.doc .summary.wide table { margin: 0; font-size: 13.5px; }
.doc .summary.wide th { background: transparent; }

/* 문의 */
.contact a.mail { display: inline-block; font-size: clamp(28px, 6vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; border-bottom: 2px solid var(--line-strong); transition: border-color 0.3s; }
.contact a.mail:hover { border-color: var(--text); }
.contact p { color: var(--muted); max-width: 34em; }

/* 푸터 (사업자 정보) */
footer { border-top: 1px solid var(--line); padding: 56px 0 64px; color: var(--muted); font-size: 13.5px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.foot dl { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; }
.foot dl div { display: flex; gap: 6px; }
.foot dt { color: var(--faint); }
.foot dd { margin: 0; }
.foot nav { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.foot nav a:hover { color: var(--text); }
.foot .copy { margin-top: 28px; color: var(--faint); font-size: 12.5px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; } }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 앱 소개 페이지 ---------------- */
.app-hero { min-height: 92svh; display: grid; align-items: center; padding: 120px 0 80px; background: var(--c); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.app-hero .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.app-hero h1 { margin: 18px 0 0; font-size: clamp(48px, 9vw, 112px); letter-spacing: -0.05em; line-height: 1.02; }
.app-hero h1 small { display: block; margin-top: 16px; font-family: var(--display); font-size: 13px; letter-spacing: 0.3em; color: var(--a); }
.app-hero .lead { margin: 32px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.app-hero .sub { margin: 10px 0 0; color: rgba(255, 255, 255, 0.72); max-width: 30em; }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.app-hero .note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.app-hero .icon { justify-self: center; width: min(100%, 360px); position: relative; }
.app-hero .icon img { border-radius: 22%; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5); position: relative; }
.app-hero .icon::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025); }
@media (max-width: 760px) { .app-hero .grid { grid-template-columns: 1fr; } .app-hero .icon { order: -1; justify-self: start; width: 112px; } .app-hero .icon::before { display: none; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 32px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.feature .mono { color: var(--a, var(--muted)); }
.feature h3 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feature h3 { margin-top: 20px; } }

.doc-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.doc-links a { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; transition: padding 0.3s var(--ease); }
.doc-links a:hover { padding-left: 10px; }
.doc-links a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.doc-links a + a:hover { padding-left: 34px; }
@media (max-width: 760px) { .doc-links { grid-template-columns: 1fr; } .doc-links a + a { padding-left: 0; border-left: 0; } }

/* ---------------- 정책 문서 (읽기 편한 긴 글) ---------------- */
.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 880px; }
.doc .crumb { font-size: 13.5px; color: var(--muted); }
.doc .crumb a:hover { color: var(--text); }
.doc h1 { margin: 16px 0 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.035em; line-height: 1.2; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .summary { margin: 40px 0; padding: 28px 30px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-2); }
.doc .summary h2 { margin: 0 0 14px; font-size: 17px; }
.doc .summary ul { margin: 0; padding-left: 1.1em; color: var(--text); }
.doc .summary li { margin: 4px 0; }
.doc .toc { margin: 0 0 56px; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: 14.5px; }
.doc .toc li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.doc .toc a { color: var(--muted); }
.doc .toc a:hover { color: var(--text); }
@media (max-width: 640px) { .doc .toc { columns: 1; } }
.doc article h2 { margin: 64px 0 14px; padding-top: 12px; font-size: 22px; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.doc article h2 .n { font-family: var(--mono); color: var(--faint); font-size: 14px; margin-right: 10px; font-weight: 400; }
.doc article p, .doc article li { color: #d6d1c8; }
.doc article ul, .doc article ol { padding-left: 1.2em; }
.doc article li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; background: var(--bg-2); }
.doc .table-scroll { overflow-x: auto; }
.doc .steps { counter-reset: s; list-style: none; padding: 0; }
.doc .steps li { counter-increment: s; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); margin: 0; }
.doc .steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--mono); color: var(--faint); }
.doc .callout { margin: 24px 0; padding: 20px 22px; border-left: 2px solid var(--text); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.doc .history { margin-top: 72px; font-size: 14px; color: var(--muted); }
mark.todo { background: #5a1d1d; color: #ffd7d7; padding: 0 4px; border-radius: 4px; }

/* 움직임을 줄이고 싶은 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto .w { color: var(--text); }
}

/* ---------------- 앱 상세 페이지 (후킹 → 공감 → 원리 → 숫자 → 기능 → 후기 → FAQ → 마지막 버튼) ---------------- */
.brandline { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-weight: 700; font-size: 17px; }
.brandline img { width: 28px; border-radius: 8px; }
.brandline span { font-family: var(--display); font-size: 10.5px; letter-spacing: 0.28em; color: var(--a); }
.app-hero h1.hookline { margin: 18px 0 0; font-size: clamp(42px, 7.2vw, 92px); letter-spacing: -0.05em; line-height: 1.06; }
.hookline .line { display: block; animation: rise 1s var(--ease) both; animation-delay: calc(0.15s + var(--i) * 0.14s); }
.hookline .line:last-child { color: var(--a); }
.app-hero .sub strong { color: #fff; font-weight: 600; }

.pain-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pain { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pain .clock-t { font-family: var(--mono); font-size: 22px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pain p { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.4; }
.pain-turn { margin: 56px 0 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.035em; }
.pain-turn em { font-style: normal; color: #E9A25F; }
@media (max-width: 640px) { .pain { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; } .pain .clock-t { font-size: 15px; } }

.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: st; }
.steps-line li { position: relative; padding: 30px 28px 32px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.steps-line li::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: var(--a); transform-origin: left; transform: scaleX(calc(0.33 * (var(--n, 1)))); }
.steps-line li:nth-child(1) { --n: 1; } .steps-line li:nth-child(2) { --n: 2; } .steps-line li:nth-child(3) { --n: 3; }
.steps-line .mono { color: var(--a); }
.steps-line h3 { margin: 26px 0 10px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.35; }
.steps-line p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps-line { grid-template-columns: 1fr; } }

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 24px; text-align: center; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat b small { font-size: 0.36em; font-weight: 600; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.stat span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 30px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review blockquote { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; letter-spacing: -0.02em; }
.review figcaption { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review-empty { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; border: 1px dashed var(--line-strong); }
.review-empty h3 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.03em; }
.review-empty p { margin: 0; color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .review-empty { flex-direction: column; align-items: flex-start; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 46em; }

.final-cta { background: var(--c); color: #fff; text-align: center; padding: clamp(96px, 12vw, 150px) 0; }
.final-cta img { margin: 0 auto 28px; border-radius: 18px; }
.final-cta h2 { margin: 0; font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.05em; line-height: 1.1; }
.final-cta p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.7); }
.final-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }

.doc-links svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.final-cta img { width: 72px; }
